Ask Your Question
0

How to factor polynomials in var('x') over the semi-ring of polynomials with non-negative integer coefficients ?

asked 2013-11-03 00:06:34 -0600

Edinah gravatar image

Is there an easy way in sage to determine the factorization of a polynomial in the variable x ( having non-negative integer coefficients), over the semi-ring of polynomials in the variable x with non-negative integer coefficients.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-03 03:35:36 -0600

tmonteil gravatar image

You can not (yet?) define polynomials over NN in Sage, because it is not a ring. What you can do is to define your polynomial over ZZ, find its factors (as elements of ZZ[x]), and then recombine them to find polynomials with non-negative entries.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-11-03 00:06:34 -0600

Seen: 557 times

Last updated: Nov 03 '13