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

📄 p14_31.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 M
字号:
% P14_31.M Arclength of input function
% (Requires Symbolic Math Toolbox)
% Input function in MATLAB format ; i.e. x^2 or sin(x)
clear
y=input('Function f= ','s')
dy=diff(y)
dy2=sym(dy)*sym(dy)
dssq=sym(dy2)+sum(1)   % Define integrand
ds=sym(dssq)^sym(1/2)
s=int(ds)
pretty(s)
%
% Version 5: Removed symmul, symadd, sympow and changed call to pretty
%

⌨️ 快捷键说明

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