diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-11-09 09:06:02 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-09 09:06:02 (GMT) |
commit | 216aaaa0564951f2ca408e2086ba60d849d52902 (patch) | |
tree | 72bfe235340e6d0255537c1b9d658881d04fead6 /Modules | |
parent | 7a69cf47a9bbc95f95fd67c982bff121b2a903cb (diff) | |
download | cpython-216aaaa0564951f2ca408e2086ba60d849d52902.zip cpython-216aaaa0564951f2ca408e2086ba60d849d52902.tar.gz cpython-216aaaa0564951f2ca408e2086ba60d849d52902.tar.bz2 |
Fixing wording in comment. (GH-10425)
Since the n==1 case just returns *max*, it cannot be larger
than the magnitude of the vector entry.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mathmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index e956314..b83befb 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -2043,7 +2043,7 @@ Given an *n* length *vec* of values and a value *max*, compute: max * sqrt(sum((x / max) ** 2 for x in vec)) The value of the *max* variable must be non-negative and -at least equal to the absolute value of the largest magnitude +equal to the absolute value of the largest magnitude entry in the vector. If n==0, then *max* should be 0.0. If an infinity is present in the vec, *max* should be INF. |