MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes
Numerical::Diff< Instance > Class Template Reference

#include <numdiff.h>

List of all members.

Public Types

typedef double(Instance::* pFun )(double x)
 Callback function: y=f(x)

Public Member Functions

 Diff (Instance *p2Inst)
double DyDx (pFun p2Fun, double AtX, double StepSize=1.0e-8)
 Evaluate dy_dx at x.
double CallFun (double x) const

Public Attributes

int Method
double LastAbsErr
 Last Absolute Error.

template<typename Instance>
class Numerical::Diff< Instance >


Member Typedef Documentation

template<typename Instance>
typedef double(Instance::* Numerical::Diff< Instance >::pFun)(double x)

Callback function: y=f(x)


Constructor & Destructor Documentation

template<typename Instance >
Numerical::Diff< Instance >::Diff ( Instance *  p2Inst) [inline]

Member Function Documentation

template<typename Instance>
double Numerical::Diff< Instance >::CallFun ( double  x) const [inline]
template<typename Instance >
double Numerical::Diff< Instance >::DyDx ( pFun  p2Fun,
double  AtX,
double  StepSize = 1.0e-8 
) [inline]

Evaluate dy_dx at x.


Member Data Documentation

template<typename Instance>
double Numerical::Diff< Instance >::LastAbsErr

Last Absolute Error.

template<typename Instance>
int Numerical::Diff< Instance >::Method

-1=backward, 0=central, 1=forward


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines