Closed 08704e68-5de8-4d82-a5c7-5ccc78990484 closed 9 years ago
Now I understand what you mean.
That's clearly not a bug. If you do
Q=0
Q.reduce(G)
then Q is an Integer. When you do Q.reduce
, you will find that an integer has no reduce method. The reduce method is for free algebra elements, and integers is something totally different. That's how object oriented programming languages such as Python work.
As you have shown in the ticket description, the zero element in the free algebra can be reduced. The INTEGER zero element has nothing to do with free algebras, hence, reduction can not be provided.
Reviewer: Simon King
Changed keywords from none to days65
Would be nice the "reduce" method handle the Integer 0 It is not really a bug but one often built polynomials from Integer "0"
CC: @saliola @simon-king-jena
Component: algebra
Keywords: days65
Reviewer: Simon King
Issue created by migration from https://trac.sagemath.org/ticket/18654