Function quadratic_extremum_y_full (o2scl)¶
-
template<class
data_t
>
voido2scl
::
quadratic_extremum_y_full
(const data_t x1, const data_t x2, const data_t x3, const data_t y1, const data_t y2, const data_t y3, const data_t &xmin, const data_t &ymin, const data_t &a, const data_t &b, const data_t &c, const data_t &den)¶ Return values related to a quadratic defined by three \( (x,y) \) pairs.
This function provides the three coefficients of the quadratic,
a
,b
, andc
, and the denominatorden
.This function should work for any floating-point data type, but will suffer from problems due to lack of precision in some cases.