OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Classes | Functions
FTpsMath.h File Reference
#include "FixedAlgebra/FTps.h"
#include "Utilities/DomainError.h"
#include <complex>
#include <type_traits>
Include dependency graph for FTpsMath.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  is_complex< T >
 
struct  is_complex< std::complex< T > >
 

Functions

template<class T , int N>
FTps< T, N > pow (const FTps< T, N > &x, int y, int trunc=(FTps< T, N >::EXACT))
 Tps x to the power (int y). More...
 
template<class T , int N>
FTps< T, N > sqrt (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Square root. More...
 
template<class T , int N>
FTps< T, N > sin (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Sine. More...
 
template<class T , int N>
FTps< T, N > cos (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Cosine. More...
 
template<class T , int N>
FTps< T, N > tan (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Tangent. More...
 
template<class T , int N>
FTps< T, N > cot (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Cotangent. More...
 
template<class T , int N>
FTps< T, N > sec (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Secant. More...
 
template<class T , int N>
FTps< T, N > csc (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Cosecant. More...
 
template<class T , int N>
FTps< T, N > exp (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Exponential. More...
 
template<class T , int N>
FTps< T, N > log (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Natural logarithm. More...
 
template<class T , int N>
FTps< T, N > sinh (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic sine. More...
 
template<class T , int N>
FTps< T, N > cosh (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic cosine. More...
 
template<class T , int N>
FTps< T, N > tanh (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic tangent. More...
 
template<class T , int N>
FTps< T, N > coth (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic cotangent. More...
 
template<class T , int N>
FTps< T, N > sech (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic secant. More...
 
template<class T , int N>
FTps< T, N > csch (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic cosecant. More...
 
template<class T , int N>
FTps< T, N > erf (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Error function. More...
 
template<class T , int N>
FTps< T, N > erfc (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Complementary error function. More...
 

Function Documentation

template<class T , int N>
FTps< T, N > cos ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Cosine.

Definition at line 191 of file FTpsMath.h.

References cos(), FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), min(), sin(), T, and FTps< T, N >::taylor().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > cosh ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Hyperbolic cosine.

Definition at line 324 of file FTpsMath.h.

References cosh(), FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), min(), sinh(), T, and FTps< T, N >::taylor().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > cot ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Cotangent.

Definition at line 222 of file FTpsMath.h.

References cos(), FTps< T, N >::getMinOrder(), sin(), and T.

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > coth ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Hyperbolic cotangent.

Definition at line 355 of file FTpsMath.h.

References cosh(), FTps< T, N >::getMinOrder(), sinh(), and T.

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > csc ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Cosecant.

Definition at line 241 of file FTpsMath.h.

References FTps< T, N >::getMinOrder(), sin(), and T.

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > csch ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Hyperbolic cosecant.

Definition at line 374 of file FTpsMath.h.

References FTps< T, N >::getMinOrder(), sinh(), and T.

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > erf ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)
template<class T , int N>
FTps< T, N > erfc ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Complementary error function.

Definition at line 414 of file FTpsMath.h.

References erf(), and T.

Referenced by matheval::detail::grammar< real_t, Iterator >::ufunc_::ufunc_().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > exp ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Exponential.

Definition at line 252 of file FTpsMath.h.

References exp(), FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), min(), T, and FTps< T, N >::taylor().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > log ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Natural logarithm.

Definition at line 274 of file FTpsMath.h.

References FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), log(), min(), T, and FTps< T, N >::taylor().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > pow ( const FTps< T, N > &  x,
int  y,
int  trunc = (FTps<T, N>::EXACT) 
)

Tps x to the power (int y).

Definition at line 118 of file FTpsMath.h.

References FTps< T, N >::getMinOrder(), FTps< T, N >::inverse(), FTps< T, N >::multiply(), and T.

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > sec ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Secant.

Definition at line 233 of file FTpsMath.h.

References cos().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > sech ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Hyperbolic secant.

Definition at line 366 of file FTpsMath.h.

References cosh().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > sin ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Sine.

Definition at line 168 of file FTpsMath.h.

References cos(), FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), min(), sin(), T, and FTps< T, N >::taylor().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > sinh ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Hyperbolic sine.

Definition at line 301 of file FTpsMath.h.

References cosh(), FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), min(), sinh(), T, and FTps< T, N >::taylor().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > sqrt ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Square root.

Definition at line 137 of file FTpsMath.h.

References endl(), FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), imag(), min(), real(), sqrt(), T, and FTps< T, N >::taylor().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > tan ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Tangent.

Definition at line 214 of file FTpsMath.h.

References cos(), and sin().

Here is the call graph for this function:

template<class T , int N>
FTps< T, N > tanh ( const FTps< T, N > &  x,
int  trunc = (FTps<T, N>::EXACT) 
)

Hyperbolic tangent.

Definition at line 347 of file FTpsMath.h.

References cosh(), and sinh().

Here is the call graph for this function: