#16432: monomial_all_divisors omit 1 as a monomial divisor
--------------------------------+----------------------------
   Reporter:  bouvier           |            Owner:
       Type:  defect            |           Status:  new
   Priority:  trivial           |        Milestone:  sage-6.3
  Component:  basic arithmetic  |         Keywords:
  Merged in:                    |          Authors:
  Reviewers:                    |  Report Upstream:  N/A
Work issues:                    |           Branch:
     Commit:                    |     Dependencies:
   Stopgaps:                    |
--------------------------------+----------------------------
 The documentation of the function '''monomial_all_divisors''' states that
 the function
 "Return a list of all monomials that divide" the input.

 The polynomial 1 is considered as a monomial dividing any monomial but is
 not returned by '''monomial_all_divisors''' (see code below for an
 example).

 Cyril

 {{{
 x,v=var('x,y')
 R = ZZ['x,y']

 one = R(1)
 m = R(x*y^2)

 print "1 is a monomial: ", one.is_monomial()
 print "1 divides m:", R.monomial_divides (one, m)
 print "List of monomial divisors of m:", R.monomial_all_divisors(m)
 print "Is 1 in it:", one in R.monomial_all_divisors(m)

 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16432>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to