I am trying to solve some basic physics problems using Maxima, but I am running into problems.
I want the code below to yield 600
(as the solution to T2
), but it just gives an empty list ([]
).
solve([
(P1*V1)/T1 = (P2*V2)/T2,
V1 = V2,
P1 = 100000,
T1 = 300,
P2 = 200000
], [T2]);
What am I missing? (I also tried many other problems similar to this one, and they all seem to fail.)
I know that I could solve this particular one numerically, but I want the answers to be precise, and I also want to be able to solve problems like this:
solve([
(P1*V1)/T1 = (P2*V2)/T2,
V1 = V2
], [T2]);
(Where the solution should be (T1*P2)/P1
.)