5.0

5.0 | 3 ratings Rate this file 180 downloads (last 30 days) File Size: 2.18 KB File ID: #9435

n-dimensional simplex quadrature

by Greg von Winckel

 

22 Dec 2005 (Updated 27 Dec 2005)

Code covered by BSD License  

% Construct Gauss points and weights for a n-dimensional simplex

Download Now | Watch this File

File Information
Description

This script computes the weights and nodes for a Gauss quadrature rule on an n-dimensional simplex. The user can either specify the vertices of the simplex or only the dimension and the vertices of the unit simplex will then be used.

The first four simplexes are

n | Domain
--|------------
1 | Interval
2 | Triangle
3 | Tetrahedron
4 | Pentatope

Thanks to John D'Errico for helping with this script.

Acknowledgements
This submission has inspired the following:
Homogen Integrate on Triangular Area and Tetrahedral Volume, Tessquad
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
27 Dec 2005 John D'Errico

I've tested this code for simplexes in dimensions from 1
to 7. All results were correct in all tests. In 1-d of course,
its a 1-d Gauss-Legendre quadrature, easily verified from
tables. In higher dimensions all I could do was verify a
known result.
Its a nice piece of code, easy to use for an integration
over an entire simplicial complex.

20 Oct 2006 Chensong Zhang

Have not try it with my own applications. But it is very nice to have a small piece of code like this. Good Job

04 Mar 2008 Im Serious

This does integrate correctly. Was unable to debug the triangle quadrature function. Something to do with incorrect Y values.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
integration Greg von Winckel 22 Oct 2008 08:10:34
guass quadature Greg von Winckel 22 Oct 2008 08:10:34
simplex Greg von Winckel 22 Oct 2008 08:10:34
interval Greg von Winckel 22 Oct 2008 08:10:34
triangle Greg von Winckel 22 Oct 2008 08:10:34
tetrahedron Greg von Winckel 22 Oct 2008 08:10:34
pentatope Greg von Winckel 22 Oct 2008 08:10:34
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com