Changes between Initial Version and Version 1 of Ticket #13608


Ignore:
Timestamp:
Oct 16, 2012, 7:04:26 PM (10 years ago)
Author:
Dan Drake
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13608 – Description

    initial v1  
    55sage: exp(mpmath.mpf('-0.0712959029907420240935'))
    66}}}
    7 fails with a `TypeError`. As Karl-Dieter Crisman discovered, this is because `exp(a)` by default calls `a.exp()`, and for mpmath floats, `a.exp` (no parentheses) returns a Python int representing its binary exponent -- which isn't callable.
     7fails with "`TypeError: 'int' object is not callable`". As Karl-Dieter Crisman discovered, this is because `exp(a)` by default calls `a.exp()`, and for mpmath floats, `a.exp` (no parentheses) returns a Python int representing its binary exponent -- which isn't callable.
    88
    99Our top-level `exp()` function should properly evaluate mpf numbers!