⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 examp8_20.m

📁 薛定宇高等应用数学问题的MATLAB求解例子源码
💻 M
字号:
syms x; fun='sin(x)*exp(-x)/(x+1)^3';  % fun 应该为字符串
maple('with(numtheory):'); f=maple(['cfe:=cfrac(' fun ',x,10)'])

n=collect(maple('nthnumer','cfe',8),x);  % 分子多项式合并同类项
d=collect(maple('nthdenom','cfe',8),x); [n,d]=numden(n/d); G=n/d; latex(G)
n=collect(maple('nthnumer','cfe',10),x);
d=collect(maple('nthdenom','cfe',10),x);
[n,d]=numden(n/d); G1=n/d; latex(G1) % 显示从略

ezplot(fun,[0,2]), hold on; ezplot(G,[0,2]); ezplot(G1,[0,2])
figure;  ezplot(fun,[0,5]), hold on; ezplot(G,[0,5]); ezplot(G1,[0,5])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -