IT++ Logo Newcom Logo

Polynomial Functions

Create a polynomial of the given roots. More...

Functions

void poly (const vec &r, vec &p)
vec poly (const vec &r)
void poly (const cvec &r, cvec &p)
cvec poly (const cvec &r)
void roots (const vec &p, cvec &r)
cvec roots (const vec &p)
void roots (const cvec &p, cvec &r)
cvec roots (const cvec &p)
vec polyval (const vec &p, const vec &x)
cvec polyval (const vec &p, const cvec &x)
cvec polyval (const cvec &p, const vec &x)
cvec polyval (const cvec &p, const cvec &x)

Detailed Description

Create a polynomial of the given roots.

Create a polynomial p with roots r

Calculate the roots r of the polynomial p

Evaluate the polynomial p (of length $N+1$ at the points x The output is given by

\[ p_0 x^N + p_1 x^{N-1} + \ldots + p_{N-1} x + p_N \]

SourceForge Logo

Generated on Fri Jan 11 08:51:41 2008 for IT++ by Doxygen 1.3.9.1