Implementation of Midpoint, Trapezoidal, and Simpson Rule

버전 1.0.0.0 (1.59 KB) 작성자: Mohammad Hossain
(a) Midpoint rule (b) Trapezoidal rule (c) Simpson’s rule
다운로드 수: 1.4K
업데이트 날짜: 2012/9/26

라이선스 보기

Implementation of the following methods to compute the integral numerically--
(a) Midpoint rule
(b) Trapezoidal rule
(c) Simpson’s rule
for NI intervals. Since Simpson’s rule requires an even number of intervals, assume NI even.

Note that the number of points is N = NI for open rules and N = NI + 1 for closed rules.

Generation of a single plot showing the absolute error versus NI for the different methods with a = 5,
b = 10, and c = 4.

인용 양식

Mohammad Hossain (2025). Implementation of Midpoint, Trapezoidal, and Simpson Rule (https://kr.mathworks.com/matlabcentral/fileexchange/38352-implementation-of-midpoint-trapezoidal-and-simpson-rule), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0