@@ -156,10 +156,10 @@ Power and logarithmic functions
156156
157157.. function :: expm1(x)
158158
159- Return ``e**x - 1 ``. For small floats *x *, the subtraction in
160- `` exp(x) - 1 `` can result in a significant loss of precision; the
161- : func: `expm1 ` function provides a way to compute this quantity to
162- full precision::
159+ Return ``e**x - 1 ``. For small floats *x *, the subtraction in `` exp(x) - 1 ``
160+ can result in a ` significant loss of precision
161+ <http://en.wikipedia.org/wiki/Loss_of_significance> `_ \; the : func: `expm1 `
162+ function provides a way to compute this quantity to full precision::
163163
164164 >>> from math import exp, expm1
165165 >>> exp(1e-5) - 1 # gives result accurate to 11 places
@@ -269,6 +269,9 @@ Angular conversion
269269Hyperbolic functions
270270--------------------
271271
272+ `Hyperbolic functions <http://en.wikipedia.org/wiki/Hyperbolic_function >`_
273+ are analogs of trigonometric functions that are based on hyperbolas
274+ instead of circles.
272275
273276.. function :: acosh(x)
274277
@@ -305,21 +308,34 @@ Special functions
305308
306309.. function :: erf(x)
307310
308- Return the error function at *x *.
311+ Return the `error function <http://en.wikipedia.org/wiki/Error_function >`_ at
312+ *x *.
313+
314+ The :func: `erf ` function can be used to compute traditional statistical
315+ functions such as the `cumulative standard normal distribution
316+ <http://en.wikipedia.org/wiki/Normal_distribution#Cumulative_distribution_function> `_::
317+
318+ def phi(x):
319+ 'Cumulative distribution function for the standard normal distribution'
320+ return (1.0 + erf(x / sqrt(2.0))) / 2.0
309321
310322 .. versionadded :: 3.2
311323
312324
313325.. function :: erfc(x)
314326
315- Return the complementary error function at *x *.
327+ Return the complementary error function at *x *. The `complementary error
328+ function <http://en.wikipedia.org/wiki/Error_function> `_ is defined as
329+ ``1.0 - erf(x) ``. It is used for large values of *x * where a straight
330+ substraction from *1 * would cause a `loss of significance
331+ <http://en.wikipedia.org/wiki/Loss_of_significance> `_\.
316332
317333 .. versionadded :: 3.2
318334
319335
320336.. function :: gamma(x)
321337
322- Return the Gamma function at *x *.
338+ Return the ` Gamma function<http://en.wikipedia.org/wiki/Gamma_function> ` at *x *.
323339
324340 .. versionadded :: 3.2
325341
0 commit comments