Class quadratic_real_gsl (o2scl)¶
-
class quadratic_real_gsl : public o2scl::quadratic_real<>¶
Solve a quadratic polynomial with real coefficients to get the real roots (GSL)
This is just a wrapper for gsl_poly_complex_solve_quadratic().
Public Functions
-
virtual int solve_r(const double a2, const double b2, const double c2, double &x1, double &x2)¶
Solves the polynomial \( a_2 x^2 + b_2 x + c_2 = 0 \) giving the two solutions \( x=x_1 \) and \( x=x_2 \) .
-
virtual int solve_r(const double a2, const double b2, const double c2, double &x1, double &x2)¶