Frama-C API - Numerors_float
val pretty : Stdlib.Format.formatter -> t -> unitval pos_inf : Numerors_utils.Precisions.t -> tReturns a t element representing a positive infinite value
val neg_inf : Numerors_utils.Precisions.t -> tReturns a t element representing a negative infinite value
val pos_zero : Numerors_utils.Precisions.t -> tReturns a t element representing a positive zero value
val neg_zero : Numerors_utils.Precisions.t -> tReturns a t element representing a negative zero value
val machine_epsilon : ?prec:Numerors_utils.Precisions.t -> Numerors_utils.Precisions.t -> tThis function returns a float of precision ?prec containing the machine epsilon divided by two for the mandatory precision parameter. We divide it by two because we are only interested in the rounding to nearest mode.
val machine_delta : ?prec:Numerors_utils.Precisions.t -> Numerors_utils.Precisions.t -> tThis function returns a float of precision ?prec containing the machine delta of the mandatory precision parameter also divided by two for the same reason as machine_epsilon.
val maximal_pos_float : prec:Numerors_utils.Precisions.t -> tMaximal positive float in the precision
val maximal_neg_float : prec:Numerors_utils.Precisions.t -> tMaximal negative float in the precision
val of_int : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> int -> tThe functions of_<typ> ~rnd ~prec x return a float of precision <prec> containing the value of x (of type <typ>) rounding to <rnd>. The default values are prec=Precisions.Real and rnd=Rounding.Near
val of_float : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> float -> tval of_string : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> string -> tval change_prec : rnd:Numerors_utils.Rounding.t -> prec:Numerors_utils.Precisions.t -> t -> tChange the precision
val is_nan : t -> boolCheck if its input is a NaN
val is_inf : t -> boolCheck if its input is an infinite value
val is_pos : t -> boolCheck if its input is positive (is_pos NaN = true)
val is_neg : t -> boolCheck if its input is negative (is_neg NaN = false)
val is_a_zero : t -> boolCheck if its input is a zero (positive or negative)
val is_pos_zero : t -> boolCheck if its input is a positive zero
val is_neg_zero : t -> boolCheck if its input is a negative zero
val is_strictly_pos : t -> boolCheck if its input is strictly positive (non zero)
val is_strictly_neg : t -> boolCheck if its input is strictly negative (non zero)
val sign : t -> Numerors_utils.Sign.tReturns the sign of its input. The sign of a NaN is Positive
val prec : t -> Numerors_utils.Precisions.tReturns the precision of its input
val exponent : t -> intReturns the exponent of its input
Returns a element containing the same value as <dst> but with the sign of <src>
val add : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> t -> tThe following functions perform floating-point arithmetic operations at the precision <prec> and using the rounding mode <rnd>. Their default values are prec=Precisions.Real and rnd=Rounding.Near. The inputs are "casted" to the asked precision if necessary before computing the operation
val sub : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> t -> tval mul : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> t -> tval div : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> t -> tval pow : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> t -> tval pow_int : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> int -> tval square : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> tval sqrt : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> tval log : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> tval exp : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> tval sin : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> tval cos : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> tval tan : ?rnd:Numerors_utils.Rounding.t -> ?prec:Numerors_utils.Precisions.t -> t -> t