Represents quadratic function f(x) = a*x*x + b*x + c. More...
#include <MRParabola.h>
Public Member Functions | |
constexpr | Parabola () noexcept=default |
constexpr | Parabola (T a, T b, T c) |
template<typename U > | |
constexpr | Parabola (const Parabola< U > &p) |
constexpr T | operator() (T x) const |
compute value of quadratic function at any x | |
constexpr T | extremArg () const |
argument (x) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 | |
constexpr T | extremVal () const |
value (y) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0 | |
Public Attributes | |
T | a = 0 |
T | b = 0 |
T | c = 0 |
Represents quadratic function f(x) = a*x*x + b*x + c.
|
constexprdefaultnoexcept |
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
argument (x) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0
|
inlineconstexpr |
value (y) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0
|
inlineconstexpr |
compute value of quadratic function at any x
T MR::Parabola< T >::a = 0 |
T MR::Parabola< T >::b = 0 |
T MR::Parabola< T >::c = 0 |