p12_16.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 14 行
M
14 行
% Problems 12.16, 12.17% Use trapezoidal integration toformat longerrorf=erf(1)% Trapezoid rule, 5 pointsx=linspace(0,1,5);y=(2/sqrt(pi))*exp(-x.^(2));errortrap= trapz(x,y)%% Modify the script to compute the actual error and% display it with comments on the screen. %% Increase the number of points and determine the accuracy.%
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?