Function quadratic_extremum_y (o2scl)

O2scl : Function List

template<class data_t>
data_t o2scl::quadratic_extremum_y(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 y 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.