diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2012-12-02 11:12:15 -0700 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2012-12-02 11:26:34 -0700 |
| commit | 86d7845ecddd26c8fadea1ad688077ad3a45d784 (patch) | |
| tree | 4c1e45c5c6314569012337ccceccec94a6acd350 /numpy | |
| parent | f8700f047be2a1079161874d632a55785bc1da88 (diff) | |
| download | numpy-86d7845ecddd26c8fadea1ad688077ad3a45d784.tar.gz | |
MAINT: Use NPY_E to expose 'e'.
Previously 'e' was defined as exp(1.)
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/umath/umathmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/umathmodule.c b/numpy/core/src/umath/umathmodule.c index e4e489c75..e06cdedd1 100644 --- a/numpy/core/src/umath/umathmodule.c +++ b/numpy/core/src/umath/umathmodule.c @@ -382,7 +382,7 @@ PyMODINIT_FUNC initumath(void) PyDict_SetItemString(d, "pi", s = PyFloat_FromDouble(NPY_PI)); Py_DECREF(s); - PyDict_SetItemString(d, "e", s = PyFloat_FromDouble(exp(1.0))); + PyDict_SetItemString(d, "e", s = PyFloat_FromDouble(NPY_E)); Py_DECREF(s); PyDict_SetItemString(d, "euler_gamma", s = PyFloat_FromDouble(NPY_EULER)); Py_DECREF(s); |
