Abs (1+3*I )

minpoly(sqrt(10))

Want to compute something more complicated? Try a full Python/SymPy console at SymPy Live.