-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Make big_oh notation work for any element that has a big_oh() method #10271
Comments
Attachment: bigoh.patch.gz patch for sage.rings.big_oh |
Attachment: trac_10271_bigoh_extension.patch.gz |
comment:2
I just added the patch in the right format, i.e. the output of hg_sage.export() instead of a normal diff. |
This comment has been minimized.
This comment has been minimized.
Reviewer: Mariah Lenox |
comment:4
Applied patch to sage-4.7.1.alpha2, did 'sage -b', then 'make testlong'. All tests passed. Positive review! |
comment:5
I think this patch needs an extra doctest to demonstrate what it does and that it works as expected. |
Work Issues: add doctest |
comment:6
The following behavior is bad. In both cases, I think one should get an error.
|
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to sd32 |
Changed author from Timo Kluck to Tom Boothby |
apply only this patch |
comment:12
Attachment: trac_10271.patch.gz |
comment:13
I could have reviewed this sooner, sorry about that. However, the ticket's dependencies are still open, so maybe we should still wait for them to be accepted? This doesn't apply to v5.4 anymore. I also couldn't easily fix that myself. I'll set the status to needs_work. |
Changed reviewer from Mariah Lenox to Timo Kluck |
One can use the big-oh notation
O(xn)
when x is a generator of a power series or a laurent series. It is convenient to also be able to use this notation when the parent of x is another ring (for example, a subclass of a power series ring).
The current implementation in
rings/big_oh.py
imports a large number of types, which slows down the Sage startup. Elements should implement their own big_oh() methods, and the functionO(x)
should simply callx.big_oh()
.Depends on #11726
Depends on #11719
Component: commutative algebra
Keywords: sd32
Work Issues: add doctest
Author: Tom Boothby
Reviewer: Timo Kluck
Issue created by migration from https://trac.sagemath.org/ticket/10271
The text was updated successfully, but these errors were encountered: