package apronext

  1. Overview
  2. Docs
module S = Scalarext
include module type of struct include Apron.Interval end
type t = Apron.Interval.t = {
  1. mutable inf : Apron.Scalar.t;
  2. mutable sup : Apron.Scalar.t;
}
val of_scalar : Apron.Scalar.t -> Apron.Scalar.t -> t
val of_infsup : Apron.Scalar.t -> Apron.Scalar.t -> t
val of_mpq : Mpq.t -> Mpq.t -> t
val of_mpqf : Mpqf.t -> Mpqf.t -> t
val of_int : int -> int -> t
val of_frac : int -> int -> int -> int -> t
val of_float : float -> float -> t
val of_mpfr : Mpfr.t -> Mpfr.t -> t
val is_top : t -> bool
val is_bottom : t -> bool
val is_leq : t -> t -> bool
val cmp : t -> t -> int
val equal : t -> t -> bool
val is_zero : t -> bool
val equal_int : t -> int -> bool
val neg : t -> t
val top : t
val bottom : t
val set_infsup : t -> Apron.Scalar.t -> Apron.Scalar.t -> unit
val set_top : t -> unit
val set_bottom : t -> unit
val print : Format.formatter -> t -> unit
val join : t -> t -> t
val to_float : t -> float * float
val to_mpqf : t -> Mpqf.t * Mpqf.t
val range : t -> S.t

scalar range of an interval

val range_mpqf : t -> Mpqf.t

same as range but result as an mpqf

val mid : t -> S.t

midpoint of an interval

val spawn : t -> Mpqf.t

Random uniform value within an interval, according to the type

OCaml

Innovation. Community. Security.