aboutsummaryrefslogtreecommitdiff
path: root/double.h
diff options
context:
space:
mode:
Diffstat (limited to 'double.h')
-rw-r--r--double.h43
1 files changed, 23 insertions, 20 deletions
diff --git a/double.h b/double.h
index 032d994..6678ba6 100644
--- a/double.h
+++ b/double.h
@@ -3,44 +3,47 @@
#include <stdbool.h>
-double int_to_valuetype(int);
+typedef long double vtype;
+typedef long double etype;
-double int_to_exptype(double);
+vtype int_to_valuetype(int);
-double infinity_to_exptype();
+etype int_to_exptype(int);
-bool exptype_is_infinite(double);
+vtype infinity_to_exptype();
-bool is_greater_certainly(double,double);
+bool exptype_is_infinite(vtype);
-bool is_greater_possibly(double,double);
+bool is_greater_certainly(vtype,vtype);
-double maximum(double,double);
+bool is_greater_possibly(vtype,vtype);
-double sum(double,double);
+vtype maximum(vtype,vtype);
-double difference(double,double);
+vtype sum(vtype,vtype);
-double product(double,double);
+vtype difference(vtype,vtype);
-double ratio(double,double);
+vtype product(vtype,vtype);
-double absolute(double);
+vtype ratio(vtype,vtype);
-double power(double,double);
+vtype absolute(vtype);
-double valuetype_to_double(double);
+vtype power(vtype,vtype);
-int exptype_to_string(char*,double);
+double valuetype_to_double(vtype);
-int exptype_to_latex(char*,double);
+int exptype_to_string(char*,vtype);
-int valuetype_to_string(char*,double);
+int exptype_to_latex(char*,vtype);
-int valuetype_to_latex(char*,double);
+int valuetype_to_string(char*,vtype);
-int root_to_string(char*,double,double);
+int valuetype_to_latex(char*,vtype);
-int root_to_latex(char*,double,double);
+int root_to_string(char*,vtype,etype);
+
+int root_to_latex(char*,vtype,etype);
#endif