Class poly_real_coeff (o2scl)

O2scl : Class List

class o2scl::poly_real_coeff : public o2scl::quadratic_real_coeff, public o2scl::cubic_real_coeff, public o2scl::quartic_real_coeff

Solve a general polynomial with real coefficients and complex roots [abstract base].

Subclassed by o2scl::poly_real_coeff_gsl

Public Functions

~poly_real_coeff()
int solve_rc_arr(int n, const double co[], std::complex<double> ro[]) = 0

Solve the n-th order polynomial.

The coefficients are stored in co[], with the leading coefficient as co[0] and the constant term as co[n]. The roots are returned in ro[0],…,ro[n-1].

const char *type()

Return a string denoting the type (“poly_real_coeff”)