OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Functions
TpsMath.h File Reference
#include "Algebra/Tps.h"
#include "Utilities/DomainError.h"
#include <cmath>
Include dependency graph for TpsMath.h:

Go to the source code of this file.

Functions

template<class T >
Tps< T > pow (const Tps< T > &x, int y)
 Integer power.
 
template<class T >
Tps< T > sqrt (const Tps< T > &x)
 Square root.
 
template<class T >
Tps< T > sin (const Tps< T > &x)
 Sine.
 
template<class T >
Tps< T > cos (const Tps< T > &x)
 Cosine.
 
template<class T >
Tps< T > tan (const Tps< T > &x)
 Tangent.
 
template<class T >
Tps< T > cot (const Tps< T > &x)
 Cotangent.
 
template<class T >
Tps< T > sec (const Tps< T > &x)
 Secant.
 
template<class T >
Tps< T > csc (const Tps< T > &x)
 Cosecant.
 
template<class T >
Tps< T > exp (const Tps< T > &x)
 Exponential.
 
template<class T >
Tps< T > log (const Tps< T > &x)
 Natural logarithm.
 
template<class T >
Tps< T > sinh (const Tps< T > &x)
 Hyperbolic sine.
 
template<class T >
Tps< T > cosh (const Tps< T > &x)
 Hyperbolic cosine.
 
template<class T >
Tps< T > tanh (const Tps< T > &x)
 Hyperbolic tangent.
 

Function Documentation

◆ cos()

template<class T >
Tps< T > cos ( const Tps< T > &  x)

◆ cosh()

template<class T >
Tps< T > cosh ( const Tps< T > &  x)

Hyperbolic cosine.

Definition at line 222 of file TpsMath.h.

References cosh(), Tps< T >::getTruncOrder(), sinh(), and Tps< T >::Taylor().

Referenced by cosh(), sinh(), tanh(), and MultipoleTCurvedVarRadius::transformBField().

Here is the call graph for this function:

◆ cot()

template<class T >
Tps< T > cot ( const Tps< T > &  x)

Cotangent.

◆ csc()

template<class T >
Tps< T > csc ( const Tps< T > &  x)

Cosecant.

Definition at line 159 of file TpsMath.h.

References Tps< T >::inverse(), and sin().

Here is the call graph for this function:

◆ exp()

template<class T >
Tps< T > exp ( const Tps< T > &  x)

◆ log()

template<class T >
Tps< T > log ( const Tps< T > &  x)

◆ pow()

template<class T >
Tps< T > pow ( const Tps< T > &  x,
int  y 
)

◆ sec()

template<class T >
Tps< T > sec ( const Tps< T > &  x)

◆ sin()

template<class T >
Tps< T > sin ( const Tps< T > &  x)

◆ sinh()

template<class T >
Tps< T > sinh ( const Tps< T > &  x)

Hyperbolic sine.

Definition at line 204 of file TpsMath.h.

References cosh(), Tps< T >::getTruncOrder(), sinh(), and Tps< T >::Taylor().

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

Here is the call graph for this function:

◆ sqrt()

template<class T >
Tps< T > sqrt ( const Tps< T > &  x)

◆ tan()

template<class T >
Tps< T > tan ( const Tps< T > &  x)

Tangent.

Definition at line 147 of file TpsMath.h.

References cos(), and sin().

Referenced by RBendGeometry::getEntrancePatch(), RBendGeometry::getExitPatch(), GlobalFunctions::_tan::operator()(), and mslang::Ellipse::writeGnuplot().

Here is the call graph for this function:

◆ tanh()

template<class T >
Tps< T > tanh ( const Tps< T > &  x)

Hyperbolic tangent.

Definition at line 240 of file TpsMath.h.

References cosh(), and sinh().

Referenced by MultipoleTCurvedVarRadius::transformBField(), and OpalVariableRFCavityFringeField::update().

Here is the call graph for this function: