8000 bpo-33089: Multidimensional math.hypot() by rhettinger · Pull Request #8474 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-33089: Multidimensional math.hypot() #8474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jul 28, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Expand range for large value tests
  • Loading branch information
rhettinger committed Jul 26, 2018
commit 1a32ac74c722dab8644f904582c9508c2f58cb0f
4 changes: 2 additions & 2 deletions Lib/test/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,8 @@ def test_multi_hypot(self):
self.assertTrue(math.isnan(hypot(NAN)))

# Verify scaling for extremely large values
halfmax = FLOAT_MAX / 2.0
for n in range(10):
halfmax = FLOAT_MAX / 4.0
for n in range(32):
self.assertEqual(hypot(*([halfmax]*n)), halfmax * math.sqrt(n))

# Verify scaling for extremely small values
Expand Down
0