diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-02-16 19:00:42 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-02-16 19:00:42 (GMT) |
commit | 3ff5962d2e9af2c35d09d39465397c6fa6e9965c (patch) | |
tree | a03db92123a8030d38f7b58c0c227b96a1b2cfd0 /Doc/whatsnew | |
parent | 4583525835baf8fc7bd49a60725d1e8c49ef92b3 (diff) | |
download | cpython-3ff5962d2e9af2c35d09d39465397c6fa6e9965c.zip cpython-3ff5962d2e9af2c35d09d39465397c6fa6e9965c.tar.gz cpython-3ff5962d2e9af2c35d09d39465397c6fa6e9965c.tar.bz2 |
bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)
https://bugs.python.org/issue33089
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.8.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index dbc3787..632c2a8 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -193,9 +193,16 @@ Add option ``--json-lines`` to parse every input line as separate JSON object. math ---- +Added new function :func:`math.dist` for computing Euclidean distance +between two points. (Contributed by Raymond Hettinger in :issue:`33089`.) + +Expanded the :func:`math.hypot` function to handle multiple dimensions. +Formerly, it only supported the 2-D case. +(Contributed by Raymond Hettinger in :issue:`33089`.) + Added new function, :func:`math.prod`, as analogous function to :func:`sum` that returns the product of a 'start' value (default: 1) times an iterable of -numbers. (Contributed by Pablo Galindo in :issue:`issue35606`) +numbers. (Contributed by Pablo Galindo in :issue:`35606`) os.path |