Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006321OCamlOCaml standard librarypublic2014-02-05 20:522014-07-16 11:13
Reporterjfc 
Assigned To 
PrioritylowSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version4.03.0+devFixed in Version 
Summary0006321: Infinity vs. NaN in hypot
DescriptionThe ocaml runtime and Unix math runtime return different results for hypot(nan, infinity).

On Unix (Linux and OpenBSD), hypot(infinity, nan) returns infinity. The manual says this is as designed.

The ocaml runtime, when HAS_C99_FLOAT_OPS is not defined, returns nan.

I don't think this is important, but I thought I should point out the inconsistency.
TagsNo tags attached.
Attached Filesc file icon hypot.c [^] (651 bytes) 2014-02-05 20:52 [Show Content]

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-02-05 20:52 jfc New Issue
2014-02-05 20:52 jfc File Added: hypot.c
2014-07-16 11:13 doligez Status new => acknowledged
2014-07-16 11:13 doligez Target Version => 4.03.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker