1 #include <cln/number.h>
4 #include <cln/lfloat.h>
6 #include <cln/complex.h>
7 #include <cln/complex_io.h>
9 #include <cln/random.h>
12 #include <cln/timing.h>
15 int main (int argc, char * argv[])
18 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
19 repetitions = atoi(argv[2]);
24 uintL len = atoi(argv[1]);
26 cl_LF one = cl_I_to_LF(1,len);
27 cl_F x = scale_float(random_F(one),-1);
30 cl_F x = sqrt(cl_I_to_LF(2,len))-1;
33 ln(cl_I_to_LF(1000,len+10)); // fill cache
35 for (int rep = repetitions; rep > 0; rep--)
40 for (int rep = repetitions; rep > 0; rep--)
41 { y = ln((1+x)/(1-x))/2; }