mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
[3.14] gh-141004: Document Py_MATH_{E, PI, TAU} constants (GH-141373) (#141471)
gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373)
(cherry picked from commit f1330b35b8)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
24bf09b42c
commit
fe3826cbaf
1 changed files with 17 additions and 0 deletions
|
|
@ -96,16 +96,33 @@ Floating-Point Objects
|
||||||
the C11 standard ``<math.h>`` header.
|
the C11 standard ``<math.h>`` header.
|
||||||
|
|
||||||
|
|
||||||
|
.. c:macro:: Py_MATH_E
|
||||||
|
|
||||||
|
The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` constant.
|
||||||
|
|
||||||
|
|
||||||
.. c:macro:: Py_MATH_El
|
.. c:macro:: Py_MATH_El
|
||||||
|
|
||||||
High precision (long double) definition of :data:`~math.e` constant.
|
High precision (long double) definition of :data:`~math.e` constant.
|
||||||
|
|
||||||
|
|
||||||
|
.. c:macro:: Py_MATH_PI
|
||||||
|
|
||||||
|
The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi` constant.
|
||||||
|
|
||||||
|
|
||||||
.. c:macro:: Py_MATH_PIl
|
.. c:macro:: Py_MATH_PIl
|
||||||
|
|
||||||
High precision (long double) definition of :data:`~math.pi` constant.
|
High precision (long double) definition of :data:`~math.pi` constant.
|
||||||
|
|
||||||
|
|
||||||
|
.. c:macro:: Py_MATH_TAU
|
||||||
|
|
||||||
|
The definition (accurate for a :c:expr:`double` type) of the :data:`math.tau` constant.
|
||||||
|
|
||||||
|
.. versionadded:: 3.6
|
||||||
|
|
||||||
|
|
||||||
.. c:macro:: Py_RETURN_NAN
|
.. c:macro:: Py_RETURN_NAN
|
||||||
|
|
||||||
Return :data:`math.nan` from a function.
|
Return :data:`math.nan` from a function.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue