In file No file:

int polyexpand (const std::complex<double>* roots, int n, double* poly)

Expand into a real polynominal

Documentation

Expands the roots into a polynomial with real coefficients.

The supplied roots must come in complex pairs or be real. A complex root must be followed by its complex conjugate, or else an error is returned. The length of the coefficents array must be at least n+1. the polynomial coeffcient of highest power is returned first. The

Returns:
Order of polynomial (-1 on error)
Parameters:
roots - Roots of the polynomial
order - Number of roots
poly - Coefficients of polynomial in decreasing order (return)
Author:
Written March 2003 by Daniel Sigg
Version:
1.0

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++