diff options
| author | Julian Weigt <juw@posteo.de> | 2026-01-18 13:28:25 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:56:45 +0100 |
| commit | b7835be8db1d6d2ef60bbe9e972cb708c0fee8c0 (patch) | |
| tree | 8d81ca6a69e2fd10762f9fb60b660cd958ff0efc /double-error.h | |
| parent | 6ceb2c20056d6cece59791686deeeac312fa6009 (diff) | |
Allow p=∞ in program and adjust and generalize printing accordingly.
Diffstat (limited to 'double-error.h')
| -rw-r--r-- | double-error.h | 12 |
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); |
