Fpu.RoundDown
Functions rounding down their results.
include module type of Interval_base.RoundDown
Functions rounding down their results.
include Interval_base.DIRECTED with type t = float
val zero : t
The neutral element for addition.
val one : t
The neutral element for multiplication.
val pi : t
Upper/lower bound on π.
val two_pi : t
Upper/lower bound on 2π.
val half_pi : t
Upper/lower bound on π/2.
val euler : t
Upper/lower bound on Euler's constant.
val float : int -> t
When t = float
, the float function is exact on 32 bits machine but not on 64 bits machine with ints larger than 53 bits.
dist x y
return the distance between x
and y
(i.e., |x-y|) rounded up or down according to the module.
module U = Interval_base.I.U
Locally open to restore standard integer and floating point operators.
x**y
computes x
at power y
, rounded down, expanded to its mathematical limit when it exists.
pow x y
computes x
at power y
, rounded down, for 0 < x < ∞
and -∞ < y < ∞
.
atan2 y x
returns the arc tangent of y /. x
. The signs of x
and y
are used to determine the quadrant of the result. Result is in radians and is between -π and π.