First time here? Check out the FAQ!
answered 2017-11-26 22:59:43 +0100
You can use the norm method:
norm
sage: v = vector((3,4)) sage: v (3, 4) sage: v.norm() 5