% 泰勒多项式与指数函数的近似程度
syms x
fx=exp(x);
x0=0;
n=[2 5 7];
for i=1:length(n)%展开阶数 n-1
hx(i)=taylor(fx,x,'order',n(i),'ExpansionPoint',x0);
end
xp=linspace(-3,3,40);
y =subs(fx,x,xp);
matlab 泰勒函数逼近实验
最新推荐文章于 2024-06-28 18:57:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)