Gaussian Quadrature for Triangles

Compute Gauss nodes and weights for a triangle
Updated 21 Dec 2005

View License

This script computes Gauss nodes and weights for numerically integrating a fuction over an arbitrary triangular domain. Note: This method uses the collapsed square rather than the general cubature case.

Cite As

Greg von Winckel (2024). Gaussian Quadrature for Triangles (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Numerical Integration and Differential Equations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Sign of weights depended on ordering of vertices through the Jacobian. This has been fixed.