📄 moment_sdisk.m
字号:
%moment_sdisk.m
clear;
f=inline('x.^2.*(1-x.^2).^(0.5)*4/pi'); %define the integrand
J=quad(f,0.0,1.0,1.e-5); %Simpson quadrature integration
fprintf('The integral is %4.3f',J); %print the result to three decimals
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -