You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sage: R.<x,y> = QQ[[]]
sage: ((x+y)^3)[2,1]
[...]
TypeError: unsupported operand parent(s) for <=: 'The Infinity Ring' and '<class 'tuple'>'
Expected Behavior
There should be a simple interface (including indexing via []) for accessing a particular coefficient of a power series, similarly to that of multivariate polynomials.
Actual Behavior
Functionality for accessing individual coefficients is missing.
Additional Information
No response
Environment
OS: Ubuntu 24.04.1 LTS
Sage Version: 10.6.beta1
Checklist
I have searched the existing issues for a bug report that matches the one I want to file, without success.
I have read the documentation and troubleshoot guide
The text was updated successfully, but these errors were encountered:
Let me remark that, currently, __getitem__ extracts the piece of given degree for you:
Perhaps, for the uniformity of interface __getitem__ should support both an integer argument (the current behavior) and a tuple/list (of length equal the number of variables) argument, which will also eliminate the unnecessary step of extracting a homogeneous component when only a particular coefficient is needed.
Steps To Reproduce
We have
but
Expected Behavior
There should be a simple interface (including indexing via
[]
) for accessing a particular coefficient of a power series, similarly to that of multivariate polynomials.Actual Behavior
Functionality for accessing individual coefficients is missing.
Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: