First time here? Check out the FAQ!
answered 2013-07-23 13:56:51 +0100
If you print ans, you will see that the result of solve is:
print ans
solve
[x == (3/2),x == 8]
When you do ans[0].rhs(), you are grabbing the right hand side of the first statement. To get the second one, do ans[1].rhs().
ans[0].rhs()
ans[1].rhs()