Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to calculate the integral of function y=((-1100./9.4182)*exp((1.17*140.^(1/3)-x)./0.574)+(1.774*10.^(-14))./x-1).^0.5 ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I did it myself, but there's something wrong with the answer. Here is what I did. First, In M-File I wrote function y=myfun(x) y=((-1100./9.4182)*exp((1.17*140.^(1/3)-x)./0.574)+(1.774*10.^(-14))./x-1).^0.5; then in command window I wrote Q=quadl(@myfun,7.2696*10.^(-15),1.774*10.^(-14)) and the answer is Q =
1.377030900487298e-027 +2.248862123260422e-011i
I don't understand the answer. Help me
0 Kommentare
Antworten (1)
Georgios
am 20 Feb. 2011
The answer is correct, from a Matlab perspective. As used, the quadl function returns and answer to within an error of 10e-6, according to the help page. You can change this by giving it a third argument, which is smaller than the default 10e-6, but the answer you get will not change much.
The first part of the answer (1.377030900487298e-027)tells me that there is no real part to it, and the second part(2.248862123260422e-011i)tells me that the imaginary value is very small, but correct. I tried your integral using another software package and the answer returned was 2.248862122*10^(-11)*I, which is equivalent to your answer.
Hope this helps.
Regards, Georgios
1 Kommentar
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!