poly_real_coeff Class Reference

#include <poly.h>

Inheritance diagram for poly_real_coeff:

quadratic_real_coeff cubic_real_coeff quartic_real_coeff quadratic_real cubic_real quartic_real gsl_poly_real_coeff

Detailed Description

Base class for solving a general polynomial with real coefficients and complex roots.

Definition at line 334 of file poly.h.


Public Member Functions

virtual int solve_rc (int n, const double co[], std::complex< double > ro[])
 Solve the n-th order polynomial.
virtual int polish_rc (int n, const double co[], std::complex< double > *ro)
 Polish the roots.
const char * type ()
 Return a string denoting the type ("poly_real_coeff").

Member Function Documentation

virtual int solve_rc ( int  n,
const double  co[],
std::complex< double >  ro[] 
) [inline, virtual]

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].

Reimplemented in gsl_poly_real_coeff.

Definition at line 348 of file poly.h.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page