Issue #3366: Add error function and complementary error function to

math module.
This commit is contained in:
Mark Dickinson 2009-12-19 11:07:23 +00:00
parent 0c6a0e3318
commit 5ff37ae14b
4 changed files with 242 additions and 1 deletions

View file

@ -177,6 +177,8 @@ Power and logarithmic functions
>>> expm1(1e-5) # result accurate to full precision
1.0000050000166668e-05
.. versionadded:: 2.7
.. function:: log(x[, base])
@ -325,6 +327,20 @@ Hyperbolic functions
Special functions
-----------------
.. function:: erf(x)
Return the error function at *x*.
.. versionadded:: 2.7
.. function:: erfc(x)
Return the complementary error function at *x*.
.. versionadded:: 2.7
.. function:: gamma(x)
Return the Gamma function at *x*.