D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4023 - std.math.hypot() returns infinity when either argument is zero
Summary: std.math.hypot() returns infinity when either argument is zero
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-28 07:23 UTC by Lars T. Kyllingstad
Modified: 2014-02-15 02:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Lars T. Kyllingstad 2010-03-28 07:23:05 UTC
Both hypot(x, 0.0) and hypot(0.0, x) should return x.  Instead, real.infinity is returned in both cases.
Comment 1 Don 2010-04-09 19:23:21 UTC
Fixed DMD2.043.