problem with solving integral

9 visualizaciones (últimos 30 días)
Mahboubeh Shahrbaf
Mahboubeh Shahrbaf el 21 de Dic. de 2020
Comentada: Mahboubeh Shahrbaf el 22 de Dic. de 2020
Dear all,
I am trying to solve a symbolic integral via matlab.
But I just got the modifed form of my integral as the answer.
What is the problem?
The integral is getting from a popular paper and should not be any problem in it.
I want to reproduce the results of the paper.
T=10.;
mu=0.;
mustar = 400.;
Lambda = 602.3;
GsLambda2 = 2.319;
Gs = 0.00000639;
m0 = 5.5;
m = 100.;
Gv = 0.5 * Gs;
Gd = 0.75 * Gs;
syms p d
int(p.^2.*(((1.-2.*((exp (( sqrt (( sqrt (p.^2.+m.^2.) - mustar ).^2 + ...
d.^2))/T) +1).^(-1)))/(sqrt (( sqrt (p.^2.+m.^2.) - mustar).^2 + d.^2))) + ...
((1. - 2.*((exp (( sqrt (( sqrt (p.^2 + m.^2) + mustar).^2 + d.^2))/T)...
+ 1).^(-1)))/(sqrt (( sqrt (p.^2+m.^2) + mustar).^2 + d.^2)))), p, 0, 602.3)
ans =
int(-p^2*((2/(exp((((p^2 + 10000)^(1/2) - 400)^2 + d^2)^(1/2)/10) + 1) - 1)/(((p^2 + 10000)^(1/2) - 400)^2 + d^2)^(1/2) + (2/(exp((((p^2 + 10000)^(1/2) + 400)^2 + d^2)^(1/2)/10) + 1) - 1)/(((p^2 + 10000)^(1/2) + 400)^2 + d^2)^(1/2)), p, 0, 6023/10)
I would really appreciate it if some one could help me.

Respuestas (1)

Star Strider
Star Strider el 21 de Dic. de 2020
I suspect that the paper did not have an analytical expression for the integral, or you would be evaluating it.
Integrate it numerically instead:
T=10.;
mu=0.;
mustar = 400.;
Lambda = 602.3;
GsLambda2 = 2.319;
Gs = 0.00000639;
m0 = 5.5;
m = 100.;
Gv = 0.5 * Gs;
Gd = 0.75 * Gs;
% syms p d
dfcn = @(d) integral(@(p) p.^2.*(((1.-2.*((exp (( sqrt (( sqrt (p.^2.+m.^2.) - mustar ).^2 + ...
d.^2))/T) +1).^(-1)))./(sqrt (( sqrt (p.^2.+m.^2.) - mustar).^2 + d.^2))) + ...
((1. - 2.*((exp (( sqrt (( sqrt (p.^2 + m.^2) + mustar).^2 + d.^2))/T)...
+ 1).^(-1)))./(sqrt (( sqrt (p.^2+m.^2) + mustar).^2 + d.^2)))), 0, 602.3, 'ArrayValued',1);
d = 0:1000; % Create Values For ‘d’
Result = dfcn(d);
figure
plot(d, Result)
grid
.
  5 comentarios
Walter Roberson
Walter Roberson el 22 de Dic. de 2020
I would have to look more closely... but the new equations you posted do not look to me to be the same as the code.
With the code that was posted, I think there is no realistic hope of coming up with a symbolic integral in d.
Mahboubeh Shahrbaf
Mahboubeh Shahrbaf el 22 de Dic. de 2020
Actually, the integral in the code is exactly the same as one which is in the equation I've posted.
Just I ignored the constant coefficients.
OK, thank you both Star Strider and Walter Roberson.
Then, I have to find another routine to solve directly the integral equations.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by