1 | initial version |
Try taking the right hand side of each solution.
sage: A = solve(g(x)==0,x)
sage: [a.rhs().n() for a in A]
[-1.18920711500272, 1.18920711500272]
where n()
is short for numerical_approx()
. There are other ways of approaching this as well, such as via the solution_dict=True
keyword to solve()
.