summaryrefslogtreecommitdiff
path: root/double-error.h
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-18 13:28:25 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 15:56:45 +0100
commitb7835be8db1d6d2ef60bbe9e972cb708c0fee8c0 (patch)
tree8d81ca6a69e2fd10762f9fb60b660cd958ff0efc /double-error.h
parent6ceb2c20056d6cece59791686deeeac312fa6009 (diff)
Allow p=∞ in program and adjust and generalize printing accordingly.
Diffstat (limited to 'double-error.h')
-rw-r--r--double-error.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/double-error.h b/double-error.h
index d89b9b8..dbfe283 100644
--- a/double-error.h
+++ b/double-error.h
@@ -7,7 +7,11 @@ typedef struct {double v; double e;} double_error;
double_error int_to_valuetype(int);
-double_error int_to_exptype(double);
+double_error int_to_exptype(int);
+
+double_error infinity_to_exptype();
+
+bool exptype_is_infinite(double_error);
bool is_greater_certainly(double_error,double_error);
@@ -29,12 +33,14 @@ double_error power(double_error,double_error);
double valuetype_to_double(double_error);
-double exptype_to_double(double_error);
-
int valuetype_to_string(char*,double_error);
int valuetype_to_latex(char*,double_error);
+int exptype_to_string(char*,double_error);
+
+int exptype_to_latex(char*,double_error);
+
int root_to_string(char*,double_error,double_error);
int root_to_latex(char*,double_error,double_error);