Ask Your Question

Revision history [back]

You can further simplify as follows:

sage: abs(sqrt(3) + I).full_simplify()
2

Or use the norm function:

sage: sqrt(norm(sqrt(3) + I))
2