package interval
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=083c0e2c20df3d2f2edc497b93d8b7d651c76a51f6d0baf8ae3285c3d08080c9
md5=fe92e35e8a9cc693e250452f225f42ac
doc/interval/Fpu_rename_all/index.html
Module Fpu_rename_all
Source
As described in the Fpu
module documentation, there are problems when mixing some C-lib or ocaml native functions with interval programming on 64 bits machine.
The standard floating point functions results will always lie in the [low; high] interval computed by the Fpu module, but they are slightly different on 32 and 64 bits machines.
Using open Fpu.Rename_all
at the beginning of your program guarantees that floating computation will give the same results on 32 and 64 bits machines. This is not mandatory but might help.
NB: while most transcendantal function are almost as fast, and sometimes faster than their "standard" ocaml counterparts, +.
, -.
, *.
and /.
are much slower (from 50% to 100% depending on the processor. If you want to rename transcendantal functions but not +.
, -.
, *.
and /.
then use the Fpu.Rename
module.
Computes x + y
Computes x - y
Computes x / y
Computes x * y
Computes x mod y
square root function
log function
exp function
Computes x^y
Computes cos(x) for x in [-2^63, 2^63]
Computes sin(x) for x in [-2^63, 2^63]
Computes tan(x) for x in [-2^63, 2^63]
arc-sinus function
arc-cosine function
atan2 function
arc-tan function
cosh function
sinh function
tanh function