New issue
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
change_default_prec as a replacement for the deprecated set_default_prec #32333
Comments
New commits:
|
Commit: |
Author: Thibaut Verron |
comment:5
I agree that we should have this feature, but I don't think we should call Also, I don't think you should rely on the fraction field of a power series ring being the Laurent polynomial ring. It is not true that |
comment:6
Thanks for the comments!
Oh, right, that didn't work.
Okay, I made the changes and I added implementations for power series (univariate and multivariate) and Laurent series. I tried to pass all relevant parameters to the constructor, but some are just lost after the initialization (for instance
Oops. |
comment:8
Replying to @ThibautVerron:
Thank you for the changes.
Yes, I agree that it should be left for another ticket. Likely some additional information is needed to be stored and passed along. |
Reviewer: Travis Scrimshaw |
In http://trac.sagemath.org/18416, the method
set_default_prec
of power series rings was marked deprecated, and the warning states that the default precision should be set at construction. This was done before in #16201 for Laurent series.The point of those changes was to ensure that power series and Laurent series rings are immutable.
I suggest to replace
set_default_prec
with a methodchange_default_prec
, which would return a copy ofself
with the wanted precision. It would be similar to howchange_ring
works, for example.For an application, see the following example:
To get the correct precision, one would need something like
The idea would be to replace that with:
CC: @slel
Component: algebra
Keywords: series precision
Author: Thibaut Verron
Branch/Commit: u/gh-ThibautVerron/change_default_prec @
94fd7c5
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/32333
The text was updated successfully, but these errors were encountered: