diff options
author | Ajith Ramachandran <ajithar204@gmail.com> | 2021-06-10 16:42:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 16:42:09 (GMT) |
commit | ac867f10b49322e25f34d2d8abd8e63c86834750 (patch) | |
tree | df19019a4f94682e5ed4303fe1328526c831517d /Doc | |
parent | 90cd4330329a99e52f7141db5e0a469d30088e66 (diff) | |
download | cpython-ac867f10b49322e25f34d2d8abd8e63c86834750.zip cpython-ac867f10b49322e25f34d2d8abd8e63c86834750.tar.gz cpython-ac867f10b49322e25f34d2d8abd8e63c86834750.tar.bz2 |
bpo-44357:Add `math.cbrt()` function: Cube Root (GH-26622)
* Add math.cbrt() function: Cube Root
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/math.rst | 7 | ||||
-rw-r--r-- | Doc/whatsnew/3.11.rst | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 145bac4..7aa543a 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -342,6 +342,13 @@ necessarily has no fractional bits. Power and logarithmic functions ------------------------------- +.. function:: cbrt(x) + + Return the cube root of *x*. + + .. versionadded:: 3.11 + + .. function:: exp(x) Return *e* raised to the power *x*, where *e* = 2.718281... is the base diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index dcab367..ba7c456 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -93,6 +93,13 @@ Support :PEP:`515`-style initialization of :class:`~fractions.Fraction` from string. (Contributed by Sergey B Kirpichev in :issue:`44258`.) +math +---- + +Add :func:`math.cbrt()`: return the cube root of x. +(Contributed by Ajith Ramachandran in :issue:`44357`.) + + Removed ======= * :class:`smtpd.MailmanProxy` is now removed as it is unusable without |