This HTML automatically generated with rman for NEMO
Table of Contents
tabpoly - Evaluate polynomials or find roots of polynomials
tabpoly
[parameter=value]
tabpoly evaluates polynomials of arbitrary
degree, or finds their roots.
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].
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
gsl, tabspline(1NEMO)
src/kernel/tab
Peter Teuben
08-sep-01 V1.0 Created, as first example of GSL usage PJT
Table of Contents