]> granicus.if.org Git - python/commitdiff
bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sat, 16 Feb 2019 19:00:42 +0000 (11:00 -0800)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 16 Feb 2019 19:00:42 +0000 (11:00 -0800)
https://bugs.python.org/issue33089

Doc/whatsnew/3.8.rst

index dbc3787a9562d308085fbde8d9214a07368d4064..632c2a87a69a3cfb9c6164641ff17dc997b94b93 100644 (file)
@@ -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