Solve indefinite integral with unknown lower limit
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jessica Wan
am 5 Mär. 2022
Bearbeitet: Walter Roberson
am 5 Mär. 2022
The equation I am trying to solve is attached below,

and my Matlab code is
int(11.6 + 2*10^-3*T - 0.67*10^5*(1/T^2),T,T,1650)
The output I am getting is just "-inf", but it should not be like this, could anyone help me figure this out? Thanks
4 Kommentare
Walter Roberson
am 5 Mär. 2022
If T were 0 then 1/T^2 would be 1/0 which is a problem. If T were negative then T would have to cross 0 on its way to the positive bound, and you would have infinity again.
So... you should consider putting an assumption of positive on your variable. That would allow int() to generate a plain formula.
Akzeptierte Antwort
Weitere Antworten (1)
Matt J
am 5 Mär. 2022
Bearbeitet: Walter Roberson
am 5 Mär. 2022
Looks like there are 2 solutions.
format long g
T0=1650;
rhs=1e-3*T0^2 + 11.66*T0 + 0.67e5/T0;
p=[1e-3,11.66, -rhs, 0.67e5];
r=roots(p);
T=r(r>0 & imag(r)==0)'
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!