We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sage: R.<x, y> = QQ[] sage: R.ideal(x, y).reduce(1)
Returns 1.
1
AttributeError: 'sage.rings.integer.Integer' object has no attribute 'reduce'
No response
- **OS**: Linux - **Sage Version**: `'SageMath version 10.4, Release Date: 2024-07-19'`
The text was updated successfully, but these errors were encountered:
It's not a bug since reduce() here expects a polynomial not a number. Use R(1) or R.one() instead of 1.
reduce()
R(1)
R.one()
Sorry, something went wrong.
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.
R
.reduce()
Then it should be RFE not a bug.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: