Ticket #9566: mpmath_call_reviewer.patch

File mpmath_call_reviewer.patch, 790 bytes (added by schilly, 11 years ago)

does it make sense to also test for parent RDF ?

  • sage/libs/mpmath/utils.pyx

    # HG changeset patch
    # User Harald Schilly <harald.schilly@gmail.com>
    # Date 1279745524 -7200
    # Node ID ca3c7ee3119845cdd25002eadecea56f1728e08b
    # Parent  cd9ea50e9869396c73e5289faf6ef84237e62446
    [mq]: mpmath_call_reviewer.patch
    
    diff -r cd9ea50e9869 -r ca3c7ee31198 sage/libs/mpmath/utils.pyx
    a b  
    340340        +infinity
    341341        sage: a.call(a.polylog, 2, 1/2, parent=RR)           
    342342        0.582240526465012
     343        sage: a.call(a.polylog, 2, 1/2, parent=RDF)
     344        0.582240526465
    343345        sage: a.call(a.polylog, 2, 2, parent=RR)
    344346        2.46740110027234 - 2.17758609030360*I
    345347        sage: a.call(a.polylog, 2, 1/2, parent=RealField(100))