Function quadratic_extremum_coeffs (o2scl)

O2scl : Function List

template<class data_t>
void o2scl::quadratic_extremum_coeffs(const data_t x1, const data_t x2, const data_t x3, const data_t y1, const data_t y2, const data_t y3, data_t &a, data_t &b, data_t &c)

Return the (x,y) for 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.