Changes between Version 3 and Version 7 of Ticket #10271


Ignore:
Timestamp:
08/23/11 06:22:49 (10 years ago)
Author:
boothby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10271

    • Property Status changed from needs_review to needs_work
    • Property Work issues changed from to add doctest
    • Property Milestone changed from to sage-4.7.1
    • Property Owner changed from malb to boothby
    • Property Reviewers changed from to Mariah Lenox
  • Ticket #10271 – Description

    v3 v7  
    11One can use the big-oh notation
    22
    3 O(x^n)
     3O(x^n^)
    44
    55when 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).
    66
    7 For this, we only need x to implement x.degree() and x.add_bigoh(). I made a patch for sage.rings.big_oh that tests for this and returns x.add_bigoh(x.degree()) when possible.
     7The 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 function {{{O(x)}}} should simply call {{{x.big_oh()}}}.