gridripper::math Namespace Reference

Mathematics classes. More...


Classes

class  IntegratorIncremental1D
 Integration of non-unigird one-argument function with incrementation. More...
class  TrapesoidalIntegratorIncremental1D
class  SimpsonIntegratorIncremental1D
class  Integrator1D
 Integration of non-ungrid one-argument function. More...
class  TrapesoidalIntegrator1D
 Trapesoidal integration of non-unigrid one-argument functions. More...
class  SimpsonIntegrator1D
 Simpson integration of non-unigrid one-argument functions. More...
class  InterpolationUtil
 Interpolation related utility methods. More...
class  MVector
 Vector class. More...
class  Matrix
 Matrix class. More...
class  O5Interpolation
 Fifth order interpolation. More...
struct  XFArray
 Array of independent and dependent variable values. More...

Namespaces

namespace  expr
 Expression evaluation classes.

Functions

GReal_t LambertW (GReal_t x) throw (IllegalArgumentException&)
 Lambert W function.
GReal_t smoothH (GReal_t x, GReal_t delta)
 Analytic approximation of the Heaviside step function.
GReal_t dsmoothH (GReal_t x, GReal_t delta)
 Derivative of smoothH.
GReal_t d2smoothH (GReal_t x, GReal_t delta)
 Second derivative of smoothH.
int solve_cubic_eq_real (GReal_t a0, GReal_t a1, GReal_t a2, GReal_t *x)
 Solves the cubic equation a0 + a1*x + a2*x^2 + x^3 = 0.


Detailed Description

Mathematics classes.

Function Documentation

GReal_t gridripper::math::d2smoothH ( GReal_t  x,
GReal_t  delta 
)

Second derivative of smoothH.

Parameters:
x the function argument
delta half size of the smooth region
Returns:
the second derivative; zero if abs(x) is greater or equal to delta

GReal_t gridripper::math::dsmoothH ( GReal_t  x,
GReal_t  delta 
)

Derivative of smoothH.

Parameters:
x the function argument
delta half size of the smooth region
Returns:
the derivative; zero if abs(x) is greater or equal to delta

GReal_t gridripper::math::LambertW ( GReal_t  x  )  throw (IllegalArgumentException&)

Lambert W function.

The inverse of f(w) = w*exp(w).

Parameters:
x the function argument
Returns:
the value or NaN if x is smaller than -exp(-1)

GReal_t gridripper::math::smoothH ( GReal_t  x,
GReal_t  delta 
)

Analytic approximation of the Heaviside step function.

Parameters:
x the function argument
delta half size of the smooth region
Returns:
the analytic interpolation if abs(x) is less than delta, zero if x is less than -delta, 1 if x is greater than +delta

int gridripper::math::solve_cubic_eq_real ( GReal_t  a0,
GReal_t  a1,
GReal_t  a2,
GReal_t *  x 
)

Solves the cubic equation a0 + a1*x + a2*x^2 + x^3 = 0.

Parameters:
a0 the zeroth coefficient
a1 the first coefficient (x^1)
a2 the second coefficient (x^2)
x output array for the real solution(s)
Returns:
the number of real roots (1 or 3)


Generated on Wed Jun 17 18:46:54 2009 for GridRipper by  doxygen 1.5.6