Function quadratic_extremum_x (o2scl)¶
-
template<class data_t>
data_t o2scl::quadratic_extremum_x(const data_t x1, const data_t x2, const data_t x3, const data_t y1, const data_t y2, const data_t y3)¶ Return the x value of the extremum of a quadratic defined by three \( (x,y) \) pairs.
This function should work for any floating-point data type, but will suffer from problems due to lack of precision in some cases.