How can I solve a sum of two variables function?
Show older comments
Hello.
I have a two variables function: f=U(t,M).
I need to solve the integral (from 0 to +Inf) in dlnM of the following sum:
F(t,M) = sum(i odd) (1/i^2)*exp(-i^2 * U(t,M))
If anyone can help me, I will be appreciate it.
Thank you
5 Comments
syms I U(t,M)
temp = symsum(1/(2*I-1)*exp(-(2*I-1)^2 * U), I, 1, inf)
int(temp, M, 0, inf)
However I am not sure what you mean by integral in dLnM -- you are integrating with respect to the log of M??
3Nz0
on 4 Mar 2021
Walter Roberson
on 4 Mar 2021
Well the above shows integral with respect to M. You may have noticed that when U is an indefinite function that the result you get is not useful.
3Nz0
on 4 Mar 2021
Walter Roberson
on 4 Mar 2021
If M is a vector then you cannot integrate with respect to M.
At present, you have no hope of getting a closed form integral as long as you leave U as an indefinite function. If you put in the actual definition for U then you might get a useful result, perhaps. I was recently assisting someone with a broadly similar expression in which it turned out that what they were doing could be written in terms of JacobiTheta4.
Answers (1)
Swetha Polemoni
on 2 Mar 2021
1 vote
Hi Enzo,
It is my understanding that you want to find intergation of series sum. You may these answers helpful
Hope this helps
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!