Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
MathUtils::Quotient< F, G > Class Template Reference

Quotient of functions functor: f(x) / g(x). More...

#include <MathUtils_FunctorScalar.hxx>

Public Member Functions

 Quotient (F theF, G theG)
 Constructor from two functions.
 
bool Value (double theX, double &theY) const
 Evaluates quotient f(theX) / g(theX).
 

Detailed Description

template<typename F, typename G>
class MathUtils::Quotient< F, G >

Quotient of functions functor: f(x) / g(x).

Template Parameters
Fnumerator function type
Gdenominator function type

Constructor & Destructor Documentation

◆ Quotient()

template<typename F , typename G >
MathUtils::Quotient< F, G >::Quotient ( F theF,
G theG )
inline

Constructor from two functions.

Parameters
theFnumerator function
theGdenominator function

Member Function Documentation

◆ Value()

template<typename F , typename G >
bool MathUtils::Quotient< F, G >::Value ( double theX,
double & theY ) const
inline

Evaluates quotient f(theX) / g(theX).

Parameters
[in]theXinput value
[out]theYquotient value
Returns
false if evaluation fails or denominator is zero

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