GM2Calc 2.3.0
Loading...
Searching...
No Matches
Namespaces | Functions
gm2_numerics.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  gm2calc
 

Functions

template<typename T >
T gm2calc::sqr (T x) noexcept
 returns number squared
 
template<typename T >
T gm2calc::cube (T x) noexcept
 returns number to the third power
 
template<typename T >
T gm2calc::pow3 (T x) noexcept
 returns number to the third power
 
template<typename T >
T gm2calc::pow4 (T x) noexcept
 returns number to the 4th power
 
double gm2calc::abs_sqrt (double) noexcept
 returns square root of absolute of number
 
int gm2calc::sign (double) noexcept
 returns sign of real number
 
double gm2calc::signed_abs_sqrt (double) noexcept
 returns square root of absolute of number, times sign
 
double gm2calc::signed_sqr (double) noexcept
 returns square of number, times sign
 
template<typename T >
bool gm2calc::is_zero (T a, T eps) noexcept
 
template<typename T >
bool gm2calc::is_equal (T a, T b, T eps) noexcept
 
template<typename T >
bool gm2calc::is_equal_rel (T a, T b, T eps) noexcept