![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
Solve a general polynomial with real coefficients and complex roots [abstract base].
#include <poly.h>
Public Member Functions | |
virtual int | solve_rc (int n, const double co[], std::complex< double > ro[])=0 |
Solve the n-th order polynomial. | |
const char * | type () |
Return a string denoting the type ("poly_real_coeff") |
virtual int poly_real_coeff::solve_rc | ( | int | n, |
const double | co[], | ||
std::complex< double > | ro[] | ||
) | [pure virtual] |
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].
Implemented in gsl_poly_real_coeff.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).