Info

This question is closed. Reopen it to edit or answer.

How can I numerically integrate a function that has another integrate?

1 view (last 30 days)
I need to evaluate the following integral
Where vR is a max(f(tau),0) function. I've been trying to do this with the integral function and with the symbolic toolbox, but I couldn't success. Do you have any kind of advice to evaluate this?
Thanks Javier
  4 Comments
Walter Roberson
Walter Roberson on 2 Dec 2015
It appears that the symbolic expression would be
int(exp(-(int(r+max(0, -f(tau)), tau = t .. mu))), mu = t .. T)
Javier Garcia
Javier Garcia on 2 Dec 2015
Yes, that's correct, but that expresion can't be evaluated, at least not if the function f(tau) is the max() function. I did manage to evaluate it, but with a function recreating the riemman sum of the outer integral

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!