Changes between Initial Version and Version 1 of Ticket #17553, comment 4


Ignore:
Timestamp:
01/02/15 00:49:04 (5 years ago)
Author:
wonder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17553, comment 4

    initial v1  
    1717
    1818Note using `sage.symbolic.function_factory.function('limit')` in place of `l.operator()` does not work.
     19
     20Update: here it is in `simplify_limits` form:
     21
     22{{{
     23limop = limit( SR('f(x)'), x=0 ).operator()
     24def simplify_limits( expr ):
     25    def eval_limit( expr, var, val ):
     26        kv = { str(var):val }
     27        return limit( expr, **kv )
     28    return expr.substitute_function( limop, eval_limit )
     29}}}