Composite Simpson's rule for irregularly spaced data

バージョン 1.0.4 (41.8 KB) 作成者: Marko
Composite Simpson's rule for irregularly spaced data based on a parabolic polynomial fit.
ダウンロード: 16
更新 2023/7/3

ライセンスの表示

From the Newton-Cotes family of numeric integration the Simpson's rule is a popular method to numerically evaluate the definite integral of a mathematical function f(x).
This implementation work with regularly and irregularly spaced data. For irregularly spaced data, matlabs polnomial fit function polyfit is used.
% Example:
% y = [0 1 2 4 5]
% I = simpsonQuad(y)
%
% y = [0 1 2 3 4]
% x = [4 6 8 10 12]
% I = simpsonQuad(x,y)
%
% y = [0 2 3 4 5]
% x = [4 6 9 10 13]
% I = simpsonQuad(x,y)

引用

Josic (2023). simpsonQuad (https://www.mathworks.com/matlabcentral/fileexchange/<...>), MATLAB Central File Exchange. Retrieved July 1, 2023.

MATLAB リリースの互換性
作成: R2023a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加
謝辞

ヒントを得たファイル: simpsonQuadrature

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.4

corrected description

1.0.3

* updated the plotting function and added a plot as comparison with trapz
* changed the input arguments from simpsonQuad(y,x) to simpsonQuad(x,y)
* updated the description

1.0.2

upload the new version

1.0.1

correction in the description

1.0.0