All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
ttmath.h File Reference

Mathematics functions. More...

#include "ttmathbig.h"
#include "ttmathobjects.h"
#include "ttmathparser.h"

Go to the source code of this file.

Namespaces

 ttmath
 a namespace for the TTMath library
 
 ttmath::auxiliaryfunctions
 

Functions

template<class ValueType >
ValueType ttmath::SkipFraction (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::Round (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Ceil (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Floor (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Ln (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Log (const ValueType &x, const ValueType &base, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Exp (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
uint ttmath::auxiliaryfunctions::PrepareSin (ValueType &x, bool &change_sign)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::Sin0pi05 (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::Sin (ValueType x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Cos (ValueType x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Tan (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Tg (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Cot (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Ctg (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::ASin_0 (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::ASin_1 (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::ASin (ValueType x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::ACos (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::ATan0 (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::ATan01 (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::ATanGreaterThanPlusOne (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::ATan (ValueType x)
 
template<class ValueType >
ValueType ttmath::ATg (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::ACot (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::ACtg (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::Sinh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Cosh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Tanh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Tgh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Coth (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Ctgh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::ASinh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::ACosh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::ATanh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::ATgh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::ACoth (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::ACtgh (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::DegToRad (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::RadToDeg (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::DegToDeg (const ValueType &d, const ValueType &m, const ValueType &s, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::DegToRad (const ValueType &d, const ValueType &m, const ValueType &s, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::GradToRad (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::RadToGrad (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::DegToGrad (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::DegToGrad (const ValueType &d, const ValueType &m, const ValueType &s, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::GradToDeg (const ValueType &x, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Sqrt (ValueType x, ErrorCode *err=0)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::RootCheckIndexSign (ValueType &x, const ValueType &index, ErrorCode *err)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::RootCheckIndexZero (ValueType &x, const ValueType &index, ErrorCode *err)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::RootCheckIndexOne (const ValueType &index, ErrorCode *err)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::RootCheckIndexTwo (ValueType &x, const ValueType &index, ErrorCode *err)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::RootCheckIndexFrac (ValueType &x, const ValueType &index, ErrorCode *err)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::RootCheckXZero (ValueType &x, ErrorCode *err)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::RootCheckIndex (ValueType &x, const ValueType &index, ErrorCode *err, bool *change_sign)
 
template<class ValueType >
uint ttmath::auxiliaryfunctions::RootCorrectInteger (ValueType &old_x, ValueType &x, const ValueType &index)
 
template<class ValueType >
ValueType ttmath::Root (ValueType x, const ValueType &index, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::Abs (const ValueType &x)
 
template<class ValueType >
ValueType ttmath::Sgn (ValueType x)
 
template<class ValueType >
ValueType ttmath::Mod (ValueType a, const ValueType &b, ErrorCode *err=0)
 
template<class ValueType >
void ttmath::auxiliaryfunctions::SetFactorialSequence (std::vector< ValueType > &fact, uint more=20)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::SetBernoulliNumbersSum (CGamma< ValueType > &cgamma, const ValueType &n_, uint m, const volatile StopCalculating *stop=0)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::SetBernoulliNumbersMore (CGamma< ValueType > &cgamma, uint start, const volatile StopCalculating *stop=0)
 
template<class ValueType >
bool ttmath::auxiliaryfunctions::SetBernoulliNumbers (CGamma< ValueType > &cgamma, uint more=20, const volatile StopCalculating *stop=0)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaFactorialHighSum (const ValueType &n, CGamma< ValueType > &cgamma, ErrorCode &err, const volatile StopCalculating *stop)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaFactorialHigh (const ValueType &n, CGamma< ValueType > &cgamma, ErrorCode &err, const volatile StopCalculating *stop)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaPlusHigh (ValueType n, CGamma< ValueType > &cgamma, ErrorCode &err, const volatile StopCalculating *stop)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaPlusLowIntegerInt (uint n, CGamma< ValueType > &cgamma)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaPlusLowInteger (const ValueType &n, CGamma< ValueType > &cgamma)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaPlusLow (ValueType n, CGamma< ValueType > &cgamma, ErrorCode &err, const volatile StopCalculating *stop)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaPlus (const ValueType &n, CGamma< ValueType > &cgamma, ErrorCode &err, const volatile StopCalculating *stop)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::GammaMinus (const ValueType &n, CGamma< ValueType > &cgamma, ErrorCode &err, const volatile StopCalculating *stop)
 
template<class ValueType >
ValueType ttmath::Gamma (const ValueType &n, CGamma< ValueType > &cgamma, ErrorCode *err=0, const volatile StopCalculating *stop=0)
 
template<class ValueType >
ValueType ttmath::Gamma (const ValueType &n, ErrorCode *err=0)
 
template<class ValueType >
ValueType ttmath::auxiliaryfunctions::Factorial2 (ValueType x, CGamma< ValueType > *cgamma=0, ErrorCode *err=0, const volatile StopCalculating *stop=0)
 
template<class ValueType >
ValueType ttmath::Factorial (const ValueType &x, CGamma< ValueType > &cgamma, ErrorCode *err=0, const volatile StopCalculating *stop=0)
 
template<class ValueType >
ValueType ttmath::Factorial (const ValueType &x, ErrorCode *err=0)
 

Detailed Description

Mathematics functions.