Ask Your Question

Revision history [back]

For simplifying expressions involving square roots, it often helps to use the canonicalize_radical method.

In your case:

sage: f.canonicalize_radical()
0