Skip to content

dmath.exp(-172) != dmath.exp(Decimal(-172)) != math.exp(-172) == exp(-172) #3

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
______________________________________
>>> import math,dmath,decimal
>>> math.exp(decimal.Decimal("-172"))
2.0014701280414429e-75
>>> dmath.exp(decimal.Decimal("-172"))
Decimal("-8.573821946135526241845525610E+43")
>>> dmath.exp(-172)
-218L

What is the expected output? What do you see instead?
______________________________________
maxima (a CAS) says exp(-172) == 2.0014701280414429E-75

What version of the product are you using? On what operating system?
______________________________________
dmath 0.9 on kubuntu with Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02).


Original issue reported on code.google.com by javir...@eden.rutgers.edu on 21 Sep 2007 at 11:54

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions