summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-20 19:28:18 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-20 19:28:18 (GMT)
commitf91c70a7bd662428fd39c1b2e8987e060b75074d (patch)
tree1dda00b2fcf603e6f36313c4f342946cb9a4948e
parent2fcd8c97037d0a186e3eeae4680e764b55b59dcd (diff)
downloadcpython-f91c70a7bd662428fd39c1b2e8987e060b75074d.zip
cpython-f91c70a7bd662428fd39c1b2e8987e060b75074d.tar.gz
cpython-f91c70a7bd662428fd39c1b2e8987e060b75074d.tar.bz2
Change references to the new math functions to generate proper x-refs.
-rw-r--r--Doc/whatsnew/2.6.rst21
1 files changed, 10 insertions, 11 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 3d1ea51..120de3b 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -1350,29 +1350,28 @@ Here are all of the changes that Python 2.6 makes to the core Python language.
floating-point exceptions and IEEE 754 special values.
The new functions are:
- * :func:`isinf` and :func:`isnan` determine whether a given float is
- a (positive or negative) infinity or a NaN (Not a Number),
- respectively.
+ * :func:`~math.isinf` and :func:`~math.isnan` determine whether a given float
+ is a (positive or negative) infinity or a NaN (Not a Number), respectively.
- * ``copysign(x, y)`` copies the sign bit of an IEEE 754 number,
+ * :func:`~math.copysign` copies the sign bit of an IEEE 754 number,
returning the absolute value of *x* combined with the sign bit of
*y*. For example, ``math.copysign(1, -0.0)`` returns -1.0.
(Contributed by Christian Heimes.)
- * :func:`factorial` computes the factorial of a number.
+ * :func:`~math.factorial` computes the factorial of a number.
(Contributed by Raymond Hettinger; :issue:`2138`.)
- * :func:`sum` adds up the stream of numbers from an iterable,
+ * :func:`~math.sum` adds up the stream of numbers from an iterable,
and is careful to avoid loss of precision by calculating partial sums.
(Contributed by Jean Brouwers; :issue:`2819`.)
- * The inverse hyperbolic functions :func:`acosh`, :func:`asinh` and
- :func:`atanh`.
+ * The inverse hyperbolic functions :func:`~math.acosh`, :func:`~math.asinh`
+ and :func:`~math.atanh`.
- * The function :func:`log1p`, returning the natural logarithm of
- *1+x* (base *e*).
+ * The function :func:`~math.log1p`, returning the natural logarithm of *1+x*
+ (base *e*).
- There's also a new :func:`trunc` function as a result of the
+ There's also a new :func:`trunc` built-in function as a result of the
backport of `PEP 3141's type hierarchy for numbers <#pep-3141>`__.
The existing math functions have been modified to follow the