Class poly_complex (o2scl)¶
-
class
o2scl
::
poly_complex
: public o2scl::quadratic_complex, public o2scl::cubic_complex, public o2scl::quartic_complex¶ Solve a general polynomial with complex coefficients [abstract base].
Public Functions
-
~poly_complex
()¶
-
int
solve_c_arr
(int n, const std::complex<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].
-
int
polish_c_arr
(int n, const std::complex<double> co[], std::complex<double> *ro) = 0¶ Polish the roots.
-
const char *
type
()¶ Return a string denoting the type (“poly_complex”)
-