0.3.0
Loading...
Searching...
No Matches
Cosecant.cpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9#include "Cosecant.hpp"
10
12
13namespace NAV
14{
15
16double calcTropoMapFunc_cosecant(double elevation)
17{
18 return math::csc(elevation);
19}
20
21double calcTropoMapFunc_secant(double zenithDistance)
22{
23 return math::sec(zenithDistance);
24}
25
26} // namespace NAV
Cosecant tropospheric mapping function.
Simple Math functions.
T sec(const T &x)
Calculates the secant of a value (sec(x) = csc(pi/2 - x) = 1 / cos(x))
Definition Math.hpp:123
T csc(const T &x)
Calculates the cosecant of a value (csc(x) = sec(pi/2 - x) = 1 / sin(x))
Definition Math.hpp:130
double calcTropoMapFunc_secant(double zenithDistance)
Calculates the mapping factor as cosecant of the elevation (= secant of the zenith distance)
Definition Cosecant.cpp:21
double calcTropoMapFunc_cosecant(double elevation)
Calculates the mapping factor as cosecant of the elevation.
Definition Cosecant.cpp:16