This HTML automatically generated with rman for NEMO
Table of Contents

Name

tabpoly - Evaluate polynomials or find roots of polynomials

Synopsis

tabpoly [parameter=value]

Description

tabpoly evaluates polynomials of arbitrary degree, or finds their roots.

Parameters

The following parameters are recognized in any order if the keyword is also given:
coef=
Polynomial coefficients, c_0 first [No default]
x=
Evaluate polynial at these values of X. If no values give, the roots are returned.
format=
Output format, in standard printf(3) format [%g].

Examples

Here is the standard GSL example of the 5 roots of the equation x^5-1, which has 1,e^{2.PI.i/5},e^{4.PI.i/5},e^{6.PI.i/5},e^{8.PI.i/5}:
% tabpoly coef=-1,0,0,0,0,1 format=%25.18g
    -0.809016994374947451      0.587785252292473026
    -0.809016994374947451     -0.587785252292473026
      0.30901699437494734      0.951056516295153531
      0.30901699437494734     -0.951056516295153531
                        1                         0

See Also

gsl, tabspline(1NEMO)

Files


src/kernel/tab

Author

Peter Teuben

Update History


08-sep-01    V1.0 Created, as first example of GSL usage    PJT


Table of Contents