1 | initial version |
One way to simplify this expression is to
Here is how to do that.
sage: a = 2*(2378*sqrt(2) - 3363)/(408*sqrt(2) - 577)
sage: AA(a).radical_expression()
-4*sqrt(2) + 6
2 | No.2 Revision |
One way to simplify this expression is toin two steps:
Here is how to do that.
Name the expression:
sage: a = 2*(2378*sqrt(2) - 3363)/(408*sqrt(2) - 577)
Turn it into an algebraic number:
sage: b = AA(a)
sage: b
0.343145750507?
Turn that algebraic number into a symbolic expression:
sage: c = b.radical_expression()
sage: c
-4*sqrt(2) + 6
Or all in one go:
sage: AA(a).radical_expression()
-4*sqrt(2) + 6