Ticket #10271: bigoh.patch

File bigoh.patch, 447 bytes (added by tkluck, 11 years ago)

patch for sage.rings.big_oh

  • sage/rings/big_oh.py

    old new  
    8484
    8585    elif isinstance(x, padic_generic_element.pAdicGenericElement):
    8686         return x.parent()(0, absprec = x.valuation())
     87
     88    elif(hasattr(x, "add_bigoh") and hasattr(x, "degree")):
     89        return x.add_bigoh(x.degree())
     90   
    8791    raise ArithmeticError, "O(x) not defined"
    8892