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: L.<z> = LazyPowerSeriesRing(Zmod(4))
sage: f = L(constant=2)
sage: f
2 + 2*z + 2*z^2 + O(z^3)
sage: 2*f
...
AssertionError: Stream_exact should only be used for non-zero streams
Expected Behavior
sage: L.<z> = LazyPowerSeriesRing(Zmod(4))
sage: f = L(constant=2)
sage: f
2 + 2*z + 2*z^2 + O(z^3)
sage: 2*f
0
Actual Behavior
There is an error.
Additional Information
No response
Environment
irrelevant
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:
sagemathgh-36156: detect the zero series when returning an exact stream
By definition, an exact stream is non-zero. Therefore, we have to check
before constructing one.
Fixessagemath#36154
### 📝 Checklist
- [X] The title is concise, informative, and self-explanatory.
- [X] The description explains in detail what this PR is about.
- [X] I have linked a relevant issue or discussion.
- [X] I have created tests covering the changes.
URL: sagemath#36156
Reported by: Martin Rubey
Reviewer(s): Frédéric Chapoton
Steps To Reproduce
Expected Behavior
Actual Behavior
There is an error.
Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: