This is strange:

sage: import mpmath
sage: exp(mpmath.mpf('-0.0712959029907420240935'))

raises "TypeError: 'int' object is not callable". I can, of course, use
mpmath.exp on the number, but I would expect automatic conversion. 

This works, though:

sage: exp(-0.0712959029907420240935) 
0.93118631054266770709

And if I wrap the mpf in "N( )" to explicitly convert to a regular Sage
float, it works. 

I'm using 5.3 on 64-bit Linux. Is this expected behavior, or a bug?

Dan

--
---  Dan Drake
-----  http://math.pugetsound.edu/~ddrake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to