3D Simpson's Integrator

Fully vectorised 3D integrator based on the Simpson's method
1,7K Downloads
Aktualisiert 10 Mär 2009

Lizenz anzeigen

Fast, fully vectorised version of the Simpson's method for 3D domains. This code avoids the use of any for loops etc. For a given level of accuracy it can be an order of magnitude or more faster than triplequad.

Examples are provided within the code.

Useage:

ans = simp3D('func3D',xs,xe,ys,ye,zs,ze,NX,NY,NZ)

Input parameters:

func3D - 3D function that accepts vector inputs (otherwise
misleading results can occur)

xs, xe - x-limits of integration
ys, ye - y-limits of integration
zs, ze - z-limits of integration

NX - number of integration intervals in the x-direction (should be even)
NY - number of integration intervals in the y-direction (should be even)
NZ - number of integration intervals in the z-direction (should be even)

Zitieren als

Whayne Padden (2024). 3D Simpson's Integrator (https://www.mathworks.com/matlabcentral/fileexchange/23250-3d-simpson-s-integrator), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2006b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu General Physics finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: 2D Simpson's Integrator

Inspiriert: 2D Simpson's Integrator

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0