This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************** | |
BLH -> ENU 変換 | |
: WGS84 の緯度(Beta)/経度(Lambda)/楕円体高(Height)を | |
ENU (East/North/Up; 地平) 座標に変換する。 | |
* 途中、 ECEF(Earth Centered Earth Fixed; 地球中心・地 | |
球固定直交座標系)座標への変換を経由。 | |
DATE AUTHOR VERSION | |
2021.05.06 mk-mode.com 1.00 新規作成 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************** | |
ECEF -> BLH 変換 | |
: ECEF(Earth Centered Earth Fixed; 地球中心・地球固定直交座標系)座標を | |
WGS84 の緯度(Latitude)/経度(Longitude)/楕円体高(Height)に変換する。 | |
DATE AUTHOR VERSION | |
2021.05.02 mk-mode.com 1.00 新規作成 | |
Copyright(C) 2021 mk-mode.com All Rights Reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************** | |
BLH -> ECEF 変換 | |
: WGS84 の緯度(Beta)/経度(Lambda)/楕円体高(Height)を | |
ECEF(Earth Centered Earth Fixed; 地球中心・地球固定直交座標系)座標に | |
変換する。 | |
DATE AUTHOR VERSION | |
2021.04.30 mk-mode.com 1.00 新規作成 | |
Copyright(C) 2021 mk-mode.com All Rights Reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************** | |
2つの時刻(timespec)の平均を計算 | |
DATE AUTHOR VERSION | |
2021.02.06 mk-mode.com 1.00 新規作成 | |
Copyright(C) 2020 mk-mode.com All Rights Reserved. | |
---------------------------------------------------------- | |
引数 : JST_1 JST_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "calc.hpp" | |
#include <cmath> | |
#include <iomanip> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
namespace my_lib { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "calc.hpp" | |
#include <cmath> | |
#include <iomanip> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
namespace my_lib { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************** | |
Convert an infix formula to an RPN (by binary tree). | |
(Unary operators are not supported) | |
DATE AUTHOR VERSION | |
2020.10.08 mk-mode.com 1.00 新規作成 | |
Copyright(C) 2020 mk-mode.com All Rights Reserved. | |
***************************************************************/ | |
#include <iostream> // for cout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************** | |
Caculate a formula string by RPN. | |
DATE AUTHOR VERSION | |
2020.10.07 mk-mode.com 1.00 新規作成 | |
Copyright(C) 2020 mk-mode.com All Rights Reserved. | |
***************************************************************/ | |
#include <iostream> // for cout | |
#include <regex> // for regex_search. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************** | |
Convert an infix formula to an RPN. | |
(Unary operators are not supported) | |
DATE AUTHOR VERSION | |
2020.10.05 mk-mode.com 1.00 新規作成 | |
Copyright(C) 2020 mk-mode.com All Rights Reserved. | |
***************************************************************/ | |
#include <iostream> // for cout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/ruby | |
#********************************************************* | |
# Ruby script to convert string to RPN (by binary tree). | |
# (Unary operators are not supported) | |
#********************************************************* | |
class Node | |
attr_reader :expr | |
def initialize(expr) |