Serving the Quantitative Finance Community

 
User avatar
ScorpioS
Topic Author
Posts: 0
Joined: June 28th, 2003, 11:01 pm

Matlab numerical integration

August 24th, 2006, 10:06 am

Can someone help me on how to perform a numerical integration with two integrals in Matlab using the quadl library? I know how to do it for one integration, but when the integrand involved another integration whose integrand involves the integrating variable of the first, I have a problem. For example:integral[ exp (u*t + integral[exp(u*exp(-k*s))]ds)]du
 
User avatar
irvingy
Posts: 0
Joined: July 14th, 2002, 3:00 am

Matlab numerical integration

August 24th, 2006, 2:31 pm

QuoteOriginally posted by: ScorpioSCan someone help me on how to perform a numerical integration with two integrals in Matlab using the quadl library? I know how to do it for one integration, but when the integrand involved another integration whose integrand involves the integrating variable of the first, I have a problem. For example:integral[ exp (u*t + integral[exp(u*exp(-k*s))]ds)]duYou mean double integral. Use function dblquad().