Skip to content

Commit

Permalink
MAINT: Use NPY_E to expose 'e'.
Browse files Browse the repository at this point in the history
Previously 'e' was defined as exp(1.)
  • Loading branch information
charris committed Dec 2, 2012
1 parent f8700f0 commit 86d7845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/src/umath/umathmodule.c
Expand Up @@ -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);
Expand Down

0 comments on commit 86d7845

Please sign in to comment.