Code covered by the BSD License  

Highlights from
QUADGR

5.0

5.0 | 1 rating Rate this file 21 Downloads (last 30 days) File Size: 2.9 KB File ID: #23325
image thumbnail

QUADGR

by Jonas Lundgren

 

17 Mar 2009 (Updated 29 Sep 2011)

Gauss-Legendre quadrature with Richardson extrapolation.

| Watch this File

File Information
Description

Yes I know, there is no particular need for another 1-d quadrature.
QUADGK works excellent and the supply on the File Exchange is rich.
Anyway, here is another example.

The quadrature is the 12-point Gauss-Legendre (replace by your favorite).
The error estimate is based on successive interval bisection. Richardson
extrapolation accelerates the convergence for some integrals.

The Richardson extrapolation includes an estimate of the convergence order.
This is necessary for integrals with endpoint singularities. Infinite intervals are
also implemented for completeness.

QUADGR can also be used together with DBLQUAD and TRIPLEQUAD
for double- and triple integrals.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
gaussquad

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
18 Mar 2009 John D'Errico

Yes, Jonas is correct. The world is not waiting desperately for yet another 1-d quadrature. But this one is a worthy tool to add to your collection. Well written in all respects.

Please login to add a comment or rating.
Updates
14 Apr 2010

Adapted to DBLQUAD and TRIPLEQUAD.

29 Sep 2011

New contact info

Tag Activity for this File
Tag Applied By Date/Time
quadrature Jonas Lundgren 17 Mar 2009 15:35:09
integral Jonas Lundgren 17 Mar 2009 15:35:09
approximation Jonas Lundgren 17 Mar 2009 15:35:09
gauss Jonas Lundgren 17 Mar 2009 15:35:09
extrapolation Jonas Lundgren 17 Mar 2009 15:35:09
richardson Jonas Lundgren 17 Mar 2009 15:35:09
legendre Jonas Lundgren 17 Mar 2009 15:35:09
integration Jonas Lundgren 08 Dec 2009 02:50:04

Contact us at files@mathworks.com