[pypy-svn] r77629 - pypy/branch/fast-forward/pypy/module/math

agaynor at codespeak.net agaynor at codespeak.net
Tue Oct 5 20:35:34 CEST 2010


Author: agaynor
Date: Tue Oct  5 20:35:33 2010
New Revision: 77629

Modified:
   pypy/branch/fast-forward/pypy/module/math/__init__.py
   pypy/branch/fast-forward/pypy/module/math/interp_math.py
Log:
Added exmp1 to math module.

Modified: pypy/branch/fast-forward/pypy/module/math/__init__.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/math/__init__.py	(original)
+++ pypy/branch/fast-forward/pypy/module/math/__init__.py	Tue Oct  5 20:35:33 2010
@@ -34,6 +34,7 @@
        'atan2'          : 'interp_math.atan2',
        'modf'           : 'interp_math.modf',
        'exp'            : 'interp_math.exp',
+       'expm1'          : 'interp_math.expm1',
        'acos'           : 'interp_math.acos',
        'isinf'          : 'interp_math.isinf',
        'isnan'          : 'interp_math.isnan',

Modified: pypy/branch/fast-forward/pypy/module/math/interp_math.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/math/interp_math.py	(original)
+++ pypy/branch/fast-forward/pypy/module/math/interp_math.py	Tue Oct  5 20:35:33 2010
@@ -328,6 +328,10 @@
     return math1(space, math.exp, w_x)
 exp.unwrap_spec = [ObjSpace, W_Root]
 
+def expm1(space, w_x):
+    return math1(space, math.expm1, w_x)
+expm1.unwrap_spec = [ObjSpace, W_Root]
+
 def acos(space, w_x):
     """acos(x)
 



More information about the Pypy-commit mailing list