-
Notifications
You must be signed in to change notification settings - Fork 9
/
const.mli
62 lines (36 loc) · 1.48 KB
/
const.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
(* ========================================================================== *)
(* FPTaylor: A Tool for Rigorous Estimation of Round-off Errors *)
(* *)
(* Author: Alexey Solovyev, University of Utah *)
(* *)
(* This file is distributed under the terms of the MIT license *)
(* ========================================================================== *)
(* -------------------------------------------------------------------------- *)
(* Rational and interval constants *)
(* -------------------------------------------------------------------------- *)
open Num
open Interval
type t = private Rat of num | Interval of interval
val of_num : num -> t
val of_int : int -> t
val of_float : float -> t
val of_interval : interval -> t
val low_bound : t -> float
val high_bound : t -> float
val to_interval : t -> interval
val is_rat : t -> bool
val is_interval : t -> bool
val to_num : t -> num
val to_int : t -> int
val low_bound_to_num : t -> num
val high_bound_to_num : t -> num
val to_float : t -> float
val neg_c : t -> t
val abs_c : t -> t
val min_c : t -> t -> t
val max_c : t -> t -> t
val add_c : t -> t -> t
val sub_c : t -> t -> t
val mul_c : t -> t -> t
val div_c : t -> t -> t
val eq_c : t -> t -> bool