OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
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).
template<class T, int N>
FTps< T, N > sqrt (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Square root.
template<class T, int N>
FTps< T, N > sin (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Sine.
template<class T, int N>
FTps< T, N > cos (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Cosine.
template<class T, int N>
FTps< T, N > tan (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Tangent.
template<class T, int N>
FTps< T, N > cot (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Cotangent.
template<class T, int N>
FTps< T, N > sec (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Secant.
template<class T, int N>
FTps< T, N > csc (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Cosecant.
template<class T, int N>
FTps< T, N > exp (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Exponential.
template<class T, int N>
FTps< T, N > log (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Natural logarithm.
template<class T, int N>
FTps< T, N > sinh (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic sine.
template<class T, int N>
FTps< T, N > cosh (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic cosine.
template<class T, int N>
FTps< T, N > tanh (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic tangent.
template<class T, int N>
FTps< T, N > coth (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic cotangent.
template<class T, int N>
FTps< T, N > sech (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic secant.
template<class T, int N>
FTps< T, N > csch (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Hyperbolic cosecant.
template<class T, int N>
FTps< T, N > erf (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Error function.
template<class T, int N>
FTps< T, N > erfc (const FTps< T, N > &x, int trunc=(FTps< T, N >::EXACT))
 Complementary error function.

Function Documentation

◆ cos()

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 >::EXACT, FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), sin(), and FTps< T, N >::taylor().

Referenced by cos(), cot(), sec(), sin(), and tan().

Here is the call graph for this function:

◆ cosh()

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 >::EXACT, FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), sinh(), and FTps< T, N >::taylor().

Referenced by cosh(), coth(), sech(), sinh(), and tanh().

Here is the call graph for this function:

◆ cot()

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(), and sin().

Here is the call graph for this function:

◆ coth()

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(), and sinh().

Here is the call graph for this function:

◆ csc()

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(), and sin().

Here is the call graph for this function:

◆ csch()

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(), and sinh().

Here is the call graph for this function:

◆ erf()

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

Error function.

Definition at line 385 of file FTpsMath.h.

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

Referenced by P3MGreensFunction< 3 >::calculate(), erf(), and erfc().

Here is the call graph for this function:

◆ erfc()

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().

Here is the call graph for this function:

◆ exp()

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 FTps< T, N >::EXACT, exp(), FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), and FTps< T, N >::taylor().

Referenced by exp().

Here is the call graph for this function:

◆ log()

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 >::EXACT, FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), log(), and FTps< T, N >::taylor().

Referenced by log().

Here is the call graph for this function:

◆ pow()

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(), and FTps< T, N >::multiply().

Here is the call graph for this function:

◆ sec()

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(), and FTps< T, N >::inverse().

Here is the call graph for this function:

◆ sech()

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(), and FTps< T, N >::inverse().

Here is the call graph for this function:

◆ sin()

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 >::EXACT, FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), sin(), and FTps< T, N >::taylor().

Referenced by cos(), cot(), csc(), sin(), and tan().

Here is the call graph for this function:

◆ sinh()

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 >::EXACT, FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), sinh(), and FTps< T, N >::taylor().

Referenced by cosh(), coth(), csch(), sinh(), and tanh().

Here is the call graph for this function:

◆ sqrt()

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 FTps< T, N >::EXACT, FTps< T, N >::getMinOrder(), FTps< T, N >::getTruncOrder(), sqrt(), and FTps< T, N >::taylor().

Referenced by sqrt().

Here is the call graph for this function:

◆ tan()

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:

◆ tanh()

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: