Be the first to rate this file! 3 Downloads (last 30 days) File Size: 3.9 KB File ID: #23250

3D Simpson's Integrator

by Whayne Padden

 

10 Mar 2009

Fully vectorised 3D integrator based on the Simpson's method

| Watch this File

File Information
Description

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)

MATLAB release MATLAB 7.3 (R2006b)
Other requirements I would recommend 1GB as the bare minimum memory.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
mathematics Whayne Padden 11 Mar 2009 10:30:15
3d Whayne Padden 11 Mar 2009 10:30:15
integration Whayne Padden 11 Mar 2009 10:30:15
simpsons method Whayne Padden 11 Mar 2009 10:30:15

Contact us at files@mathworks.com