diff options
| author | Julian Weigt <juw@posteo.de> | 2026-02-09 22:31:37 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-09 22:34:48 +0100 |
| commit | e02b151999af3e2fdc74d302173000f562930cb6 (patch) | |
| tree | 0d98b26eb98bca14f44e8a8258a3c797dfedced8 /charf.c | |
| parent | 98399651862197ddf0f8215460ca91c8592c761f (diff) | |
Write some instructions.
Diffstat (limited to 'charf.c')
| -rw-r--r-- | charf.c | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -40,13 +40,17 @@ Floating point without error bounds are the default.*/ typedef unsigned long index_t; -/*maximum length of the circle*/ +/*maximum length of the circle +Adjust as desired.*/ #define N 36 -/*maximal order of derivative*/ +/*maximal order of derivative +Adjust as desired.*/ #define K 64 -/*maximal number of exponents*/ +/*maximal number of exponents +Adjust as desired. +Which exponents are considered is set using the array exponents in the beginning of the main routine.*/ #define P 5 /*Given function f on domain [0,D-1], compute derivative of order k and store result in df.*/ @@ -523,6 +527,12 @@ void* handle_threads(void* arguments){ } int main() { + /* + Array of exponents to be considered. + Default: 1,2,4,8,∞. + Adjust as desired. + Note, that the macro P defined in the beginning of the file has to be adjusted in case fewer or more exponents are to be considered. + */ EXPTYPE exponents[P]; exponents[0] = int_to_exptype(1); exponents[1] = int_to_exptype(2); |
