#13393: Vector normalization
------------------------------+---------------------------------------------
Reporter: chrisjamesberg | Owner: Chris Berg
Type: defect | Status: new
Priority: major | Milestone: sage-5.4
Component: linear algebra | Keywords: vector, normalize
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Chris Berg
Merged in: | Dependencies:
Stopgaps: |
------------------------------+---------------------------------------------
Fix vector normalization so that it agrees with the standard definition of
normalizing a vector. Right now it divides the entries of the vector by
the first nonzero entry of the vector. For instance:
{{{sage: v = vector([1,2,3])}}}
{{{sage: v.normalize()}}}
{{{(1, 2, 3)}}}
Shouldn't the default implementation be the Euclidean norm? Especially
since v.norm() returns the Euclidean norm.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13393>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.