How can I solve a sum of two variables function?

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 Kommentare

syms I U(t,M)
temp = symsum(1/(2*I-1)*exp(-(2*I-1)^2 * U), I, 1, inf)
temp(t, M) = 
int(temp, M, 0, inf)
ans(t) = 
However I am not sure what you mean by integral in dLnM -- you are integrating with respect to the log of M??
3Nz0
3Nz0 am 4 Mär. 2021
many thanks for your help.
Yes, I want integrate with respect to dlogM or dM/M.
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
3Nz0 am 4 Mär. 2021
I have the expression of U(t, M). t and M are two vectors. I solved the problem discretizing the function, so U is a matrix. However I need to a function because 1)I want to estimate some parameters with fminsearch() 2)the result from integral with Simpson or traps method is a little bit higher then the desired results. Thank you, again
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Swetha Polemoni
Swetha Polemoni am 2 Mär. 2021

1 Stimme

Hi Enzo,
It is my understanding that you want to find intergation of series sum. You may these answers helpful
Hope this helps

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 24 Feb. 2021

Kommentiert:

am 4 Mär. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by