Problem with solve
ivanistheone opened this issue · 1 comments
ivanistheone commented
I ran into a strange case where solve
doesn't return an answer
x_i, y_i = (1.04, 0.0911)
v_xi, v_yi = (4.42, 0.778)
y = -9.8/2*t**2 + v_yi*t + y_i
y
# -4.9*t**2 + 0.778*t + 0.0911
y.diff(t)
# -9.8*t + 0.778
solve( y.diff(t), t)
# expected: [0.079] but outputs []
# workaround
solve( y.diff(t).subs({t:z}), z)
[0.0793877551020408]
Not sure what could be behind this. I can confirm it works fine on the command line.
ivanistheone commented
Just tested; cannot reproduce. Must have been a bad session or a transient error.