KASKADE 7 development version
Public Member Functions | List of all members
Kaskade::Elastomechanics::Pstable Class Reference

Numerically stable evaluation of \( (x+1)^p -1 \). More...

#include <elasto.hh>

Detailed Description

Numerically stable evaluation of \( (x+1)^p -1 \).

The direct evaluation is numerically instable around zero due to cancellation of leading digits. This class performs a Taylor expansion around zero and achieves a stable evaluation.

Definition at line 210 of file elasto.hh.

Public Member Functions

 Pstable (double p_, double x_)
 Constructor. More...
 
double d0 () const
 
double d1 (double dx) const
 
double d2 (double dx1, double dx2) const
 

Constructor & Destructor Documentation

◆ Pstable()

Kaskade::Elastomechanics::Pstable::Pstable ( double  p_,
double  x_ 
)

Constructor.

Parameters
pexponent
xargument, x > -1 has to hold

Member Function Documentation

◆ d0()

double Kaskade::Elastomechanics::Pstable::d0 ( ) const
inline

◆ d1()

double Kaskade::Elastomechanics::Pstable::d1 ( double  dx) const
inline

◆ d2()

double Kaskade::Elastomechanics::Pstable::d2 ( double  dx1,
double  dx2 
) const
inline

The documentation for this class was generated from the following file: