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
|
#ifndef DOUBLE_H
#define DOUBLE_H
#include <stdbool.h>
typedef long double vtype;
typedef long double etype;
vtype int_to_valuetype(int);
etype int_to_exptype(int);
vtype infinity_to_exptype();
bool exptype_is_infinite(vtype);
bool is_greater_certainly(vtype,vtype);
bool is_greater_possibly(vtype,vtype);
vtype maximum(vtype,vtype);
vtype sum(vtype,vtype);
vtype difference(vtype,vtype);
vtype product(vtype,vtype);
vtype ratio(vtype,vtype);
vtype absolute(vtype);
vtype power(vtype,vtype);
double valuetype_to_double(vtype);
int exptype_to_string(char*,vtype);
int exptype_to_latex(char*,vtype);
int valuetype_to_string(char*,vtype);
int valuetype_to_latex(char*,vtype);
int root_to_string(char*,vtype,etype);
int root_to_latex(char*,vtype,etype);
#endif
|