From ad8e591e9fb673f8d11092b1399060afc61b2295 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 16 Feb 2019 10:53:40 -0800 Subject: [PATCH] Add math.dist() and math.hypot() to Whatsnew --- Doc/whatsnew/3.8.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index dbc3787a9562d30..632c2a87a69a3cf 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