Interval_crlibmInterval library for OCaml (crlibm version).
This library has the important property that the functions are proved correct (while Interval_intel mostly uses the processor implementation, which is sometimes flawed). It is sometimes faster, sometimes slightly slower than Interval_intel. Some additional functions are also available, thanks to CRlibm.
It is recommended to open this module.
type interval = Interval_base.interval = {low : float; | (* lower bound, possibly = -∞ *) |
high : float; | (* higher bound, possibly = +∞ *) |
}module I : sig ... endInterval operations. Locally open this module — using e.g. I.(...) — to redefine classical arithmetic operators for interval arithmetic.
module type DIRECTED = sig ... endmodule Low = RoundDownmodule High = RoundUp