?? 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 + -