Ask Your Question

Revision history [back]

The result you get are expressions (see the == sign):

sage: a = sol_n[0]
sage: a
x == -1/16*I*sqrt(7) + 21/16

What you could do is to get their right-hand side, with the rhs method:

sage: a.rhs()
-1/16*I*sqrt(7) + 21/16
sage: a.rhs().n()
1.31250000000000 - 0.165359456941537*I

The result you get are expressions (see the == sign):

sage: a = sol_n[0]
sage: a
x == -1/16*I*sqrt(7) + 21/16

What you could do is to get their right-hand side, with the rhs method:

sage: a.rhs()
-1/16*I*sqrt(7) + 21/16
sage: a.rhs().n()
1.31250000000000 a.rhs().n(160)
1.3125000000000000000000000000000000000000000000 - 0.165359456941537*I
0.16535945694153691190635098460245377660689119894*I