Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Note that as of Sage 5.7 (see trac #13393) the normalized method normalizes to unit length, normalize has been deprecated, and monic is the old functionality.

sage: v = vector([3, 2, 1])
sage: v.normalized()
(3/14*sqrt(14), 1/7*sqrt(14), 1/14*sqrt(14))
sage: v.monic()
(1, 2/3, 1/3)