Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
MathUtils::Power Class Reference

Power function functor: f(x) = a * x^n + b. More...

#include <MathUtils_FunctorScalar.hxx>

Public Member Functions

 Power (double theExponent, double theScale=1.0, double theOffset=0.0)
 Constructor with full parameters.
 
bool Value (double theX, double &theY) const
 Evaluates power function.
 
bool Values (double theX, double &theY, double &theDY) const
 Evaluates power function and derivative.
 

Detailed Description

Power function functor: f(x) = a * x^n + b.

Constructor & Destructor Documentation

◆ Power()

MathUtils::Power::Power ( double theExponent,
double theScale = 1.0,
double theOffset = 0.0 )
inline

Constructor with full parameters.

Parameters
theExponentpower n
theScalescale factor a
theOffsetvertical offset b

Member Function Documentation

◆ Value()

bool MathUtils::Power::Value ( double theX,
double & theY ) const
inline

Evaluates power function.

Parameters
[in]theXinput value
[out]theYfunction value
Returns
false if x < 0 and exponent is non-integer

◆ Values()

bool MathUtils::Power::Values ( double theX,
double & theY,
double & theDY ) const
inline

Evaluates power function and derivative.

Parameters
[in]theXinput value
[out]theYfunction value
[out]theDYderivative value
Returns
false if x < 0 and exponent is non-integer

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