This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: two-dimensional integration
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: lapeyre at physics dot arizona dot edu
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Tue, 26 Mar 2002 22:11:48 +0000 (GMT)
- Subject: Re: two-dimensional integration
- References: <20020325014210.A22848@bacchus.optics.arizona.edu>
John Lapeyre writes:
> Greetings, I need to do fourier integrals in two dimensions. Does
> anyone have code implementing this, or something similar ? I have
> not used the library yet. I was planning on expanding cos(kx +
> k'x') into products of sines and cosines and somehow using the 1-d
> routines in a nested fashion. I guess the 1-d routines in this case
> need to be, ... what is the word ..., re-entrant? Has anyone had
> experience with this ? Thanks,
The GSL integration routines can be nested, by passing additional
workspace through the void * params argument. I wouldn't necessarily
recommend it as a good way to compute a 2-d integral though.
Brian