辛普森数值积分规则软件

The Simpson’s rule uses parabolic arcs instead of the straight lines used in the trapezoidal rule

软件应用简介

辛普森数值积分规则软件

Z = SIMPS(Y) computes an approximation of the integral of Y via the Simpson’s method (with unit spacing). To compute the integral for spacing different from one, multiply Z by the spacing increment. 



Z = SIMPS(X,Y) computes the integral of Y with respect to X using the Simpson’s rule.

Z = SIMPS(X,Y,DIM) or SIMPS(Y,DIM) integrates across dimension DIM

SIMPS uses the same syntax as TRAPZ.

Example: 

——- 

% The integral of sin(x) on [0,pi] is 2 

% Let us compare TRAPZ and SIMPS 

x = linspace(0,pi,6); 

y = sin(x); 

trapz(x,y) % returns 1.9338 

simps(x,y) % returns 2.0071

界面展示

辛普森数值积分规则软件

结果示意

辛普森数值积分规则软件

规格 价

0元试用
0.0元人民币/月

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2022年10月18日
下一篇 2022年10月18日

相关推荐