Class poly_complex (o2scl)

O2scl : Class List

template<class fp_t = double, class cx_t = std::complex<fp_t>, class coeff_vec_t = std::vector<fp_t>, class root_vec_t = std::vector<cx_t>>
class poly_complex : public o2scl::quadratic_complex<double, std::complex<double>>, public o2scl::cubic_complex<double, std::complex<double>>, public o2scl::quartic_complex<double, std::complex<double>>

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

Public Functions

inline virtual ~poly_complex()
virtual int solve_c_arr(int n, const coeff_vec_t &co, root_vec_t &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].

virtual int polish_c_arr(int n, const coeff_vec_t &co, root_vec_t &ro) = 0

Polish the roots.

inline const char *type()

Return a string denoting the type (“poly_complex”)