常用 Peano 余项泰勒公式

Peano 余项泰勒公式

f ( x ) \large f(x) f(x) x = x 0 \large x=x_{0} x=x0 n \large n n 阶可导,则

f ( x ) = f ( x 0 ) + f ′ ( x 0 ) ( x − x 0 ) + f ′ ′ ( x 0 ) 2 ! ( x − x 0 ) 2 + ⋯ + f ( n ) ( x 0 ) n ! ( x − x 0 ) n + o ( ( x − x 0 ) n ) \large f(x)=f\left(x_{0}\right)+f^{\prime}\left(x_{0}\right)\left(x-x_{0}\right)+\frac{f^{\prime \prime}\left(x_{0}\right)}{2 !}\left(x-x_{0}\right)^{2}+\cdots+\frac{f^{(n)}\left(x_{0}\right)}{n !}\left(x-x_{0}\right)^{n}+o\left(\left(x-x_{0}\right)^{n}\right) f(x)=f(x0)+f(x0)(xx0)+2!f(x0)(xx0)2++n!f(n)(x0)(xx0)n+o((xx0)n)
特别是当 x 0 = 0 x_{0}=0 x0=0 时,
f ( x ) = f ( 0 ) + f ′ ( 0 ) x + f ′ ′ ( 0 ) 2 ! x 2 + ⋯ + f ( n ) ( 0 ) n ! x n + o ( x n ) \huge f(x)=f(0)+f^{\prime}(0) x+\frac{f^{\prime \prime}(0)}{2 !} x^{2}+\cdots+\frac{f^{(n)}(0)}{n !} x^{n}+o\left(x^{n}\right) f(x)=f(0)+f(0)x+2!f(0)x2++n!f(n)(0)xn+o(xn)

常用 Peano 余项泰勒公式

e x = 1 + x + x 2 ! + ⋯ + x n ! + o ( x n ) sin ⁡ x = x − x 3 3 ! + ⋯ + ( − 1 ) n − 1 x 2 n − 1 ( 2 n − 1 ) ! + o ( x 2 n − 1 ) cos ⁡ x = 1 − x 2 2 ! + ⋯ + ( − 1 ) n x 2 n ( 2 n ) ! + o ( x 2 n ) ln ⁡ ( 1 + x ) = x − x 2 2 + ⋯ + ( − 1 ) n − 1 x n n + o ( x n ) . ( 1 + x ) α = 1 + α x + α ( α − 1 ) 21 x 2 + ⋯ + α ( α − 1 ) ⋯ ( α − n + 1 ) n ! x n + o ( x n ) \Large \begin{array}{l} \mathrm{e}^{x}=1+x+\frac{x}{2 !}+\cdots+\frac{x}{n !}+o\left(x^{n}\right) \\ \sin x=x-\frac{x^{3}}{3 !}+\cdots+(-1)^{n-1} \frac{x^{2 n-1}}{(2 n-1) !}+o\left(x^{2 n-1}\right) \\ \cos x=1-\frac{x^{2}}{2 !}+\cdots+(-1)^{n} \frac{x^{2 n}}{(2 n) !}+o\left(x^{2 n}\right) \\ \ln (1+x)=x-\frac{x^{2}}{2}+\cdots+(-1)^{n-1} \frac{x^{n}}{n}+o\left(x^{n}\right) . \\ (1+x)^{\alpha}=1+\alpha x+\frac{\alpha(\alpha-1)}{21} x^{2}+\cdots+\frac{\alpha(\alpha-1) \cdots(\alpha-n+1)}{n !} x^{n}+o\left(x^{n}\right) \end{array} ex=1+x+2!x++n!x+o(xn)sinx=x3!x3++(1)n1(2n1)!x2n1+o(x2n1)cosx=12!x2++(1)n(2n)!x2n+o(x2n)ln(1+x)=x2x2++(1)n1nxn+o(xn).(1+x)α=1+αx+21α(α1)x2++n!α(α1)(αn+1)xn+o(xn)

  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
绘制Peano曲线和Koch曲线可以使用MATLAB中的绘图函数进行实现,下面是详细的代码实现: 1. 绘制Peano曲线 ```matlab % 定义绘制Peano曲线的函数 function PeanoCurve(n) % n为绘制的阶数 if n == 0 x = [0 1 1 2 2 3 3 2 2 1 1 0]; y = [0 0 1 1 0 0 1 1 2 2 1 1]; plot(x,y,'k'); else hold on; PeanoCurve(n-1); % 递归绘制子曲线 axis equal; % 设置坐标轴比例相等 x = get(gca,'Xtick'); y = get(gca,'Ytick'); set(gca,'XTick',[],'YTick',[]); % 隐藏坐标轴 x = [x(1) x x(end)]; y = [y(1) y y(end)]; % 添加边框 x1 = x(1:2:end); x2 = x(2:2:end); y1 = y(1:2:end); y2 = y(2:2:end); x = [x1;x2;x2;x1;x1]; y = [y1;y1;y2;y2;y1]; % 组合子曲线 plot(x,y,'k'); hold off; end end ``` 使用方法: ```matlab PeanoCurve(3); % 绘制3阶Peano曲线 ``` 2. 绘制Koch曲线 ```matlab % 定义绘制Koch曲线的函数 function KochCurve(n) % n为绘制的阶数 if n == 0 x = [0 1 1/2 1/2 1 1]; y = [0 0 sqrt(3)/2 sqrt(3) sqrt(3) 0]; plot(x,y,'k'); else hold on; KochCurve(n-1); % 递归绘制子曲线 axis equal; % 设置坐标轴比例相等 x = get(gca,'Xtick'); y = get(gca,'Ytick'); set(gca,'XTick',[],'YTick',[]); % 隐藏坐标轴 x = [x(1) x x(end)]; y = [y(1) y y(end)]; % 添加边框 x1 = x(1:2:end); x2 = x(2:2:end); y1 = y(1:2:end); y2 = y(2:2:end); x = [x1;(x1+x2)/2;(x1+x2)/2;(x2-x1)/2+x1;x2]; y = [y1;(y1+y2)/2;(y1+y2)/2;(y2-y1)/2+y1;y2]; % 组合子曲线 plot(x,y,'k'); hold off; end end ``` 使用方法: ```matlab KochCurve(3); % 绘制3阶Koch曲线 ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值