Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quadrature routines #1235

Closed
fjhickernell opened this issue Aug 29, 2012 · 4 comments
Closed

quadrature routines #1235

fjhickernell opened this issue Aug 29, 2012 · 4 comments
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request

Comments

@fjhickernell
Copy link

It would be nice for Julia to have the quadrature routines such as MATLAB's quad or quadgk

@JeffBezanson
Copy link
Member

Do you have any opinions on the methods here:

https://github.com/JeffBezanson/numal/blob/master/CHAPTER4/qadrat.c
https://github.com/JeffBezanson/numal/blob/master/CHAPTER4/integral.c

?

I could port them to julia easily.

@fjhickernell
Copy link
Author

Hi Jeff,

Sorry, I cannot tell enough about these routines just by looking at the code. Could you tell me what they are? E.g., I do like MATLAB's

quad (adaptive Simpson by

@Article{GanGau00a,
Author = {W. Gander and W. Gautschi},
Journal = {BIT},
Pages = {84--101},
Title = {Adaptive Quadrature --- Revisited},
Volume = {40},
Year = {2000}}

and

quadgk (adaptive Gauss-Konrod by

@Article{Sha08a,
Author = {L. F. Shampine},
Date-Added = {2012-06-23 20:46:34 +0000},
Date-Modified = {2012-06-23 20:47:41 +0000},
Journal = jcam,
Pages = {131--140},
Title = {Vectorized Adaptive Quadrature in Matlab},
Volume = {211},
Year = {2008}}

Fred

On Aug 30, 2012, at 3:20 AM, Jeff Bezanson notifications@github.com wrote:

Do you have any opinions on the methods here:

https://github.com/JeffBezanson/numal/blob/master/CHAPTER4/qadrat.c
https://github.com/JeffBezanson/numal/blob/master/CHAPTER4/integral.c

?

I could port them to julia easily.


Reply to this email directly or view it on GitHub.

Fred J. Hickernell, Professor and Chair
Department of Applied Mathematics, Illinois Institute of Technology
E1 Bldg Rm 208, 10 West 32nd Street, Chicago, IL 60616
Email: hickernell@iit.edu, Web: www.iit.edu/~hickernell
Office Phone: 1 312 567 8983,  Office Fax: 1 312 567 3135
Cell Phone: 1 630 696 8124

@stevengj
Copy link
Member

stevengj commented Mar 2, 2013

The Cubature package (see preceding PR) should help fill this gap, although it probably can't go into Julia's standard library due to its GPL provenance. Also, it would be nice to have a pure-Julia quadrature routine, at least in 1d, for a variety of other reasons, e.g. to handle arbitrary real types and vector fields.

It would be pretty easy for me to implement an adaptive Gauss-Kronrod 1d quadrature scheme in pure Julia (especially given a priority-queue data structure, #2438), if there is interest.

@cmcbride
Copy link

cmcbride commented Mar 6, 2013

+1 on this request. quad / romb / trap can be very useful for 1d use. I also agree with @stevengj: having an adaptive GK scheme in pure Julia would be great. Ideally, I'd love to step up to help -- but I have a solid negative balance in free time, so that's unlikely to happen soon. But I would use them if they existed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Indicates that a maintainer wants help on an issue or pull request
Projects
None yet
Development

No branches or pull requests

4 participants