Anna Kaladze
unread,Aug 24, 2010, 8:38:02 AM8/24/10You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Dear all,
I have a non-integrable function, f(u). It is in the inner integral of a double integral, and the inner one has a variable limit of integration. Like this:
"Integral [(Integral of f(u), du)] dt"
The outer integral (where the integrand is [(Integral of f(u), du)]) has finite limits (40 and 55, and the variable of integration is t). But the inner integral (where integrand is f(u)) has a low limit 0, but the upper limit is t (in principle, t takes the value from 0 to 55). Can someone help me to deal with this issue? The BIG problem is I need to approximate the solution to my problem SOLELY by employing trapz function. I was advised to adhere to quad2d routine. But I must use trapz and only do a numerical approximation (step size 0.01 should be sufficient to get a decent approximation for my purposes). The question is: “how”?
P.S. If the inner integral had constant limits, there would have been no problem even for a dummy like myself, but the inner one's upper limit is t. I tried to do some looping and employed arrayfun but I do not think my skills are up there to crack this problem.
P.P.S. Let us assume f(u) = u^2 (for the sake of an illustration, although that would be easily integrable).
Anna.