Open user202729 opened 2 months ago
It's not a bug since reduce()
here expects a polynomial not a number. Use R(1)
or R.one()
instead of 1
.
But 1
can be naturally converted to R(1)
. Besides, it does work with univariate polynomial ring
sage: R.<x> = QQ[]
sage: R.ideal(x).reduce(1)
1
In any case I see no harm converting the argument to an element of R
inside .reduce()
if it isn't already one. Would make it more convenient to use.
Then it should be RFE not a bug.
Steps To Reproduce
Expected Behavior
Returns
1
.Actual Behavior
AttributeError: 'sage.rings.integer.Integer' object has no attribute 'reduce'
Additional Information
No response
Environment
Checklist