Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monomial_all_divisors omit 1 as a monomial divisor #16432

Open
sagetrac-bouvier mannequin opened this issue Jun 3, 2014 · 1 comment
Open

monomial_all_divisors omit 1 as a monomial divisor #16432

sagetrac-bouvier mannequin opened this issue Jun 3, 2014 · 1 comment

Comments

@sagetrac-bouvier
Copy link
Mannequin

sagetrac-bouvier mannequin commented Jun 3, 2014

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)

Component: basic arithmetic

Branch: u/gh-belleb/monomial_all_divisors_omit_1_as_a_monomial_divisor

Issue created by migration from https://trac.sagemath.org/ticket/16432

@sagetrac-bouvier sagetrac-bouvier mannequin added this to the sage-6.3 milestone Jun 3, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@belleb
Copy link
Mannequin

belleb mannequin commented Feb 10, 2019

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant