gz/math/Polynomial3.hh
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
STL class.
T Evaluate(const T &_x) const
Evaluate the polynomial at _x For non-finite _x, this function computes p(z) as z tends to _x.
Definition: gz/math/Polynomial3.hh:72
friend std::ostream & operator<<(std::ostream &_out, const Polynomial3< T > &_p)
Stream insertion operator.
Definition: gz/math/Polynomial3.hh:279
const T & LeftValue() const
Get the leftmost interval value.
Definition: gz/math/Interval.hh:119
The Interval class represents a range of real numbers. Intervals may be open (a, b),...
Definition: gz/math/Interval.hh:44
T Minimum(T &_xMin) const
Compute polynomial minimum.
Definition: gz/math/Polynomial3.hh:206
The Polynomial3 class represents a cubic polynomial with real coefficients p(x) = c0 x^3 + c1 x^2 + c...
Definition: gz/math/Polynomial3.hh:44
T quiet_NaN(T... args)
T sqrt(T... args)
Polynomial3(Vector4< T > _coeffs)
Constructor.
Definition: gz/math/Polynomial3.hh:51
const T & RightValue() const
Get the rightmost interval value.
Definition: gz/math/Interval.hh:127
T isnan(T... args)
T isfinite(T... args)
bool Contains(const T &_value) const
Check if the interval contains _value
Definition: gz/math/Interval.hh:149
void Print(std::ostream &_out, const std::string &_x="x") const
Prints polynomial as p(_x) to _out stream.
Definition: gz/math/Polynomial3.hh:222
STL class.
T Minimum(const Interval< T > &_interval) const
Compute polynomial minimum in an _interval
Definition: gz/math/Polynomial3.hh:197
T copysign(T... args)
T Minimum() const
Compute polynomial minimum.
Definition: gz/math/Polynomial3.hh:213
bool Empty() const
Check if the interval is empty Some examples of empty intervals include (a, a), [a,...
Definition: gz/math/Interval.hh:137
T epsilon(T... args)
T operator()(const T &_x) const
Call operator overload.
Definition: gz/math/Polynomial3.hh:107
const Vector4< T > & Coeffs() const
Get the polynomial coefficients.
Definition: gz/math/Polynomial3.hh:65
STL namespace.
T Minimum(const Interval< T > &_interval, T &_xMin) const
Compute polynomial minimum in an _interval
Definition: gz/math/Polynomial3.hh:118
static Polynomial3 Constant(T _value)
Make a constant polynomial.
Definition: gz/math/Polynomial3.hh:58