I would like to integrate a three dimensional function in Fortran using Quadpack:
function f(x,y,z)
...
I was thinking of something like this:
result = Integrate(B(x), a_x, b_x)
B(x0) = Integrate(C(x0,y), a_y, b_y)
C(x0, y0) = Integrate(f(x0,y0, z), a_z, b_z)
Quadpack expects a function of only one argument. How can I implement this in Fortran? Modules might do the trick, but is there something easier?