Ask Your Question

Revision history [back]

You can use the norm method:

sage: v = vector((3,4))
sage: v
(3, 4)
sage: v.norm()
5