Ticket #8942: trac_8942-unsigned-inf.patch

File trac_8942-unsigned-inf.patch, 961 bytes (added by kcrisman, 12 years ago)

Based on 4.4.2

  • sage/calculus/calculus.py

    # HG changeset patch
    # User Karl-Dieter Crisman <kcrisman@gmail.com>
    # Date 1274976285 14400
    # Node ID c334e69ddec41d5ce0d73369fee25424a06e5063
    # Parent  27c18494b6cb25ffdad2749fbea6a09efc363916
    Trac 8942 - document another example that we do handle Maxima unsigned infinity.
    
    diff -r 27c18494b6cb -r c334e69ddec4 sage/calculus/calculus.py
    a b  
    10091009        +Infinity
    10101010        sage: limit(1/x,x=0,dir='below')
    10111011        -Infinity
     1012
     1013    Check that Trac 8942 is fixed::
     1014
     1015        sage: f(x) = (cos(pi/4-x) - tan(x)) / (1 - sin(pi/4+x))
     1016        sage: limit(f(x), x = pi/4, dir='minus')           
     1017        +Infinity
     1018        sage: limit(f(x), x = pi/4, dir='plus')           
     1019        -Infinity
     1020        sage: limit(f(x), x = pi/4)
     1021        Infinity
    10121022    """
    10131023    if not isinstance(ex, Expression):
    10141024        ex = SR(ex)