blob: 82559ce04dfddd66e5fe1d674f01c86691ec5f5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Example 5.48
//Chebyshev Polynomial
//Page no. 199
clc;close;clear;
deff('y=f(x)','y=4*x^3+2*x^2');
n=4;
for i=3:-1:0
x(i+1)=cosd(((2*i+1)*%pi)/(2*n))
printf('\n x(%i) = %g\n',i,x(i+1))
end
|