KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::Elastomechanics::Pstable Class Reference

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

#include <elasto.hh>

Public Member Functions

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

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.

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

Definition at line 219 of file elasto.hh.

◆ d1()

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

Definition at line 220 of file elasto.hh.

◆ d2()

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

Definition at line 221 of file elasto.hh.


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