Name
CL_evalPoly — Evaluate a matrix of polynoms
Calling Sequence
F=CL_evalPoly(COEFF,t[,nd])
Description
-
evaluation of N polynoms P(t) defined by M coefficients
COEFF (size(COEFF) = N x M) , at values contained in t.
Uses Horner method
- Last update : 27/03/2007
Parameters
- COEFF:
table of coefficients
- t :
table of values (1xN)
- nd :
(optional) 0 or integer n to calculate n-derivative of P(t) (default is 0)
Examples
t=-0.05:0.001:0.05;
COEFF=rand(500,3,"normal"); //a thousand 2 degree polynoms
F2=CL_evalPoly(COEFF,t,2); //second derivative of polynoms
F=CL_evalPoly(COEFF,t); //polynoms eval