Kaydet (Commit) 3ff5962d authored tarafından Raymond Hettinger's avatar Raymond Hettinger Kaydeden (comit) Miss Islington (bot)

bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)



https://bugs.python.org/issue33089
üst 45835258
...@@ -193,9 +193,16 @@ Add option ``--json-lines`` to parse every input line as separate JSON object. ...@@ -193,9 +193,16 @@ Add option ``--json-lines`` to parse every input line as separate JSON object.
math 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` 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 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 os.path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment