Incorrect integral being returned.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
getting an odd result when trying to integrate 50 - t.
syms t;
rate = 50- t;
int(rate)
it returns -(t - 50)^2/2 I'm pretty sure the integral should return -(t*(t - 100)/2
Is there a fix for this?
2 Kommentare
Walter Roberson
am 19 Nov. 2011
You are correct that that output should be what you expected (or a form of that).
Which MATLAB version are you using?
Akzeptierte Antwort
Wayne King
am 20 Nov. 2011
I don't see what is wrong with that antiderivative, maybe it differs by a constant from what you expect, but it is a valid antiderivative.
-(t-50)^2/2 differentiated with respect to t is 50-t
-(t(t-100))/2 differentiated with respect to t is also 50-t
The above two expressions only differ by a constant.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus 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!