5.0

5.0 | 1 rating Rate this file 5 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)

Acknowledgements

2 D Simpson's Integrator and 3 D Simpson's Integrator inspired this file.

This file inspired 2 D Simpson's Integrator and 3 D Simpson's Integrator.

MATLAB release MATLAB 7.3 (R2006b)
Other requirements I would recommend 1GB as the bare minimum memory.
Tags for This File  
Everyone's Tags
3d(2), integration, mathematics, simpsons method
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
04 May 2013 TRSTme ImEng

Great!! thank you for your upload

Contact us