Scilab Function
Last update : 1/11/2005

polyval - polynomial evaluation

Calling Sequence

y = polyval(C,x)

Parameters

Description

POLYVAL behaves like the matlab function polyval. But it is realized with standard SciLab functions "poly" and "horner". C (length=N+1) builds a polynomial with the form

Y=C(1)*x^N + c(2)*x^(N-1) + ... + C(N)*x + C(N+1)

Examples

a=[3,2,-4,1.5];
x=-10:1:10;
y=polyval(a,x)

See Also

polyfit ,   multireg ,  

Authors

Dr. Andreas Geissler geisslea@web.de