Problem with Double Integration


arunjotshi
04-08-2006, 05:45 PM
Hello friends,
I am new to Numerical Recipies Forum.
I am using it to evaluate a double integral of function f(x,y)=x(x+3y) where the limits of x,y are given [0,4]. I am modifying the method specified on page 164 of the book (FUNCTION quad3d ) for triple integration. It is working fine.
But I was wondering whether there is a way to evaluate the integral with the following limits:
1) x lies between 0 and 4.
2) y lies between 0 and x.
I am not able to figure out how to do this :(
Please help!
Thanks and Regards,
Arun Jotshi,
SUNY Buffalo,
USA.

lahde77
05-06-2006, 05:50 AM
Hi,

Just make a change of varibles so that the second integral goes from 0 to 1 rather that from 0 to x.

Timo

'