Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ff5962

Browse files
rhettingermiss-islington
authored andcommitted
bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)
https://bugs.python.org/issue33089
1 parent 4583525 commit 3ff5962

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Doc/whatsnew/3.8.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,16 @@ Add option ``--json-lines`` to parse every input line as separate JSON object.
193193
math
194194
----
195195

196+
Added new function :func:`math.dist` for computing Euclidean distance
197+
between two points. (Contributed by Raymond Hettinger in :issue:`33089`.)
198+
199+
Expanded the :func:`math.hypot` function to handle multiple dimensions.
200+
Formerly, it only supported the 2-D case.
201+
(Contributed by Raymond Hettinger in :issue:`33089`.)
202+
196203
Added new function, :func:`math.prod`, as analogous function to :func:`sum`
197204
that returns the product of a 'start' value (default: 1) times an iterable of
198-
numbers. (Contributed by Pablo Galindo in :issue:`issue35606`)
205+
numbers. (Contributed by Pablo Galindo in :issue:`35606`)
199206

200207

201208
os.path

0 commit comments

Comments
 (0)