Rational function functor: f(x) = P(x) / Q(x). Both numerator P and denominator Q are polynomials.
More...
#include <MathUtils_FunctorScalar.hxx>
|
| | Rational (const math_Vector &theNum, const math_Vector &theDenom) |
| | Constructor from math_Vector.
|
| | Rational (std::initializer_list< double > theNum, std::initializer_list< double > theDenom) |
| | Constructor from initializer lists.
|
| bool | Value (double theX, double &theY) const |
| | Evaluates rational function at theX.
|
Rational function functor: f(x) = P(x) / Q(x). Both numerator P and denominator Q are polynomials.
Usage:
Rational aRat({1.0, 1.0}, {1.0, 0.0, 1.0});
Rational(const math_Vector &theNum, const math_Vector &theDenom)
Constructor from math_Vector.
Definition MathUtils_FunctorScalar.hxx:257
◆ Rational() [1/2]
Constructor from math_Vector.
- Parameters
-
| theNum | numerator coefficients (ascending power order) |
| theDenom | denominator coefficients (ascending power order) |
◆ Rational() [2/2]
| MathUtils::Rational::Rational |
( |
std::initializer_list< double > | theNum, |
|
|
std::initializer_list< double > | theDenom ) |
|
inline |
Constructor from initializer lists.
- Parameters
-
| theNum | numerator coefficients |
| theDenom | denominator coefficients |
◆ Value()
| bool MathUtils::Rational::Value |
( |
double | theX, |
|
|
double & | theY ) const |
|
inline |
Evaluates rational function at theX.
- Parameters
-
| [in] | theX | input value |
| [out] | theY | function value P(theX)/Q(theX) |
- Returns
- false if denominator is zero
The documentation for this class was generated from the following file: