Reputation: 6147
How can I tell sympy.solve
in which variables to express the solution?
For example, I would like
from sympy import *
a, b, c = symbols("a b c")
solve([
Eq(a, b),
Eq(b, c)
], a)
# => {a: b}
to return {a: c}
rather than {a: b}
, i.e. to express the solution in terms of [c]
, but to eliminate [b]
from the solution.
Upvotes: 0
Views: 317