Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions
poly_complex Class Reference

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

#include <poly.h>

Inheritance diagram for poly_complex:
quadratic_complex cubic_complex quartic_complex quadratic_real_coeff cubic_real_coeff quartic_real_coeff quadratic_real cubic_real quartic_real

Detailed Description

Definition at line 349 of file poly.h.

Public Member Functions

virtual int solve_c (int n, const std::complex< double > co[], std::complex< double > ro[])=0
 Solve the n-th order polynomial.
virtual int polish_c (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")

Member Function Documentation

virtual int poly_complex::solve_c ( int  n,
const std::complex< 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].


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.