1 #include <cln/number.h>
4 #include <cln/lfloat.h>
5 #include "float/lfloat/cl_LF.h"
6 #include <cln/complex.h>
7 #include <cln/complex_io.h>
9 #include <cln/random.h>
12 #include <cln/timing.h>
17 int main (int argc, char * argv[])
20 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
21 repetitions = atoi(argv[2]);
26 uintL len = atoi(argv[1]);
28 cl_LF one = cl_I_to_LF(1,len);
29 cl_F x = scale_float(random_F(one),-1);
32 cl_F x = sqrt(cl_I_to_LF(2,len))-1;
35 ln(cl_I_to_LF(1000,len+10)); // fill cache
37 for (int rep = repetitions; rep > 0; rep--)
42 for (int rep = repetitions; rep > 0; rep--)
43 { y = ln((1+x)/(1-x))/2; }