#6237: repeated roots with roots(CDF, multiplicities=False)
--------------------------------+-------------------------------------------
   Reporter:  ncalexan          |       Owner:  somebody                
       Type:  defect            |      Status:  needs_work              
   Priority:  major             |   Milestone:  sage-4.3.1              
  Component:  basic arithmetic  |    Keywords:  roots CDF multiplicities
Work_issues:                    |      Author:  Alex Ghitza             
   Upstream:  N/A               |    Reviewer:                          
     Merged:                    |  
--------------------------------+-------------------------------------------
Changes (by AlexGhitza):

  * status:  needs_info => needs_work


Comment:

 Thanks for catching this.

 From Pari's documentation for the function we're using:

 {{{
 polroots(pol,{flag = 0})

 complex roots of the polynomial pol, given as a column vector where each
 root is repeated according to its multiplicity. [...]

 The algorithm used is a modification of A.Sch¨nhage's root-finding
 algorithm, due to and implemented by X.Gourdon. Barring bugs, it is
 guaranteed to converge and to give the roots to the required accuracy.
 }}}

 There is no mention of the roots being sorted.  I guess I could read the
 source code and find out, but I like you suggestion of sorting the Pari
 output anyway -- just in case they change the behaviour in the future.

 Also from the above snippet, Pari indeed does not give the multiplicities,
 it just repeats each root the correct number of times.

 I will replace the patch soon.

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