#13393: Vector normalization
--------------------------------------------+-------------------------------
       Reporter:  chrisjamesberg            |         Owner:  Chris Berg        
          
           Type:  defect                    |        Status:  needs_review      
          
       Priority:  major                     |     Milestone:  sage-5.6          
          
      Component:  linear algebra            |    Resolution:                    
          
       Keywords:  vector, normalize         |   Work issues:  doctest, 
docstring          
Report Upstream:  N/A                       |     Reviewers:  Luis Serrano, 
Benjamin Jones
        Authors:  Chris Berg, Eviatar Bach  |     Merged in:                    
          
   Dependencies:                            |      Stopgaps:                    
          
--------------------------------------------+-------------------------------

Old description:

> 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.

New description:

 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.

 --------

 Apply combined.patch

--

Comment (by eviatarbach):

 Thanks :)

 Patchbot: apply combined.patch

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13393#comment:28>
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.

Reply via email to