Using maxima.cesga.es:
Input:
a(t) := a0*(t/t1)$
v(t) := integrate(a(t) , t)$
v(t);
v(t1);
Result:
(a0 * t^2) / (2 * t1)
a0 * t1
Expected Result:
(a0 * t^2) / (2 * t1)
(a0 * t1) / 2
Note 1:
Input
q(t) := (a0 * t^2) / (2 * t1) $
q(t1);
correctly return (a0 * t1) / 2
Note 2:
Using "z" instead of "t" in v(z) := integrate ... returns the correct value as well.
a(t) := a0*(t/t1)$
v(z) := integrate(a(t) , t)$
v(t);
v(t1);
Correction to Note 2: v(z) := integrate(a(t) , t, 0, z)$
I don't see a bug here, so I'm closing this ticket as not-a-bug.
The problem occurs because of the conventional obscuring of the different roles of
t1. An indefinite integral is really mapping one function to another function, but unless one is being careful with notation, that's not clear, and Maxima has adopted that convention.What
v(t1)should really mean is that the integral is evaluated and thent1is substituted into the result. You showed one way to do that, via the definite integral. Here are two more ways:and
where
tfoois just a made-up name which is different fromtor anything a user would enter.Thanks for taking the time to make a bug report. I hope my notes are helpful in some way.