package apronext
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Apronext.CoeffextSource
and t = union_5APRON Coefficients (either scalars or intervals)
val s_of_mpq : Mpq.t -> tval s_of_mpqf : Mpqf.t -> tval s_of_int : int -> tval s_of_frac : int -> int -> tCreate a scalar coefficient of type Mpqf.t from resp.
- A multi-precision rational
Mpq.t - A multi-precision rational
Mpqf.t - an integer
- a fraction
x/y
val s_of_float : float -> tCreate an interval coefficient of type Float with the given value
val s_of_mpfr : Mpfr.t -> tCreate an interval coefficient of type Mpfr with the given value
val i_of_scalar : Apron.Scalar.t -> Apron.Scalar.t -> tBuild an interval from a lower and an upper bound
val i_of_mpq : Mpq.t -> Mpq.t -> tval i_of_mpqf : Mpqf.t -> Mpqf.t -> tval i_of_int : int -> int -> tval i_of_frac : int -> int -> int -> int -> tval i_of_float : float -> float -> tval i_of_mpfr : Mpfr.t -> Mpfr.t -> tCreate an interval coefficient from resp. two
- multi-precision rationals
Mpq.t - multi-precision rationals
Mpqf.t - integers
- fractions
x/yandz/w - machine floats
- Mpfr floats
val is_scalar : t -> boolval is_interval : t -> boolNon Total Comparison:
- If the 2 coefficients are both scalars, corresp. to Scalar.cmp
- If the 2 coefficients are both intervals, corresp. to Interval.cmp
- otherwise, -3 if the first is a scalar, 3 otherwise
val is_zero : t -> boolIs the coefficient equal to scalar 0 or interval 0,0 ?
val equal_int : t -> int -> boolIs the coefficient equal to scalar b or interval b,b ?
val print : Format.formatter -> t -> unitPrinting
Extensions
conversion operators
to_float x converts x to a float. Raises Invalid_arg if x is a scalar
to_float x converts x to a Mpqf.t. Raises Invalid_arg if x is a scalar
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page