-
Notifications
You must be signed in to change notification settings - Fork 9
/
taylor_form.mli
35 lines (26 loc) · 1.3 KB
/
taylor_form.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
(* ========================================================================== *)
(* 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 *)
(* ========================================================================== *)
(* -------------------------------------------------------------------------- *)
(* Symbolic Taylor forms *)
(* -------------------------------------------------------------------------- *)
(* Describes an error variable *)
type error_info = {
(* Error variables with the same index are the same *)
index : int;
(* The upper bound of the error is 2^exp *)
exp : int;
}
type taylor_form = {
v0 : Expr.expr;
v1 : (Expr.expr * error_info) list;
}
val dummy_tform : taylor_form
val sum_high : (float * int) list -> float * int
val expr_for_index : int -> Expr.expr
val simplify_form : Expr.constraints -> taylor_form -> taylor_form
val build_form : Expr.constraints -> Expr.expr -> taylor_form