对于具有收敛泰勒级数的函数 f(x),此脚本将计算函数 a(x) 和 b(x) 的 Chebyshev 展开系数,使得 a/b 近似为 f。 样本点的数量必须是奇数。
2021-12-29 17:22:30 2KB matlab
1
chebyshev三次最佳逼近代码 clear clc format long a=0;b=1;n=3; for j=0:n x(j+1)=0.5*(a+b+(b-a)*cos((j+0.5)*pi/(n+1))); end for i=1:n+1 c(i)=exp(x(i)); end…………
2019-12-21 20:23:42 398B matlab chebyshev逼近
1