You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6868 Reporter: rand Assigned to:@garrigue Status: closed (set by @xavierleroy on 2016-12-07T10:49:19Z) Resolution: not a bug Priority: urgent Severity: major OS: Ubuntu OS Version: 14.04 Version: 4.02.0 Category: runtime system and C interface Monitored by: rand
Bug description
The faulty output only happens when evaluating the expression directly in toplevel or as script to ocaml - the output is correct when having compiled to byte-/native-code.
I have reproduced this for other ocaml compilers on the same computer, and on a different machine running ubuntu 14.10.
I cannot see what is wrong.
You apply sin to a value that differs from pi by about 5e-5, and you get a value of about 5e-5.
Mathematically this seems correct:
Original bug ID: 6868
Reporter: rand
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2016-12-07T10:49:19Z)
Resolution: not a bug
Priority: urgent
Severity: major
OS: Ubuntu
OS Version: 14.04
Version: 4.02.0
Category: runtime system and C interface
Monitored by: rand
Bug description
The faulty output only happens when evaluating the expression directly in toplevel or as script to ocaml - the output is correct when having compiled to byte-/native-code.
I have reproduced this for other ocaml compilers on the same computer, and on a different machine running ubuntu 14.10.
Steps to reproduce
ocaml <(echo "print_float (sin 3.14159265358979312)")
1.22464679915e-16
ocaml <(echo "print_float (sin 3.1416358979312)")
-4.32443413933e-05
ocaml <(echo "print_float (sin 3.1415358979312)")
5.6755658563e-05
The text was updated successfully, but these errors were encountered: