#include #include #include #include #include #define N 10000000 /* * For very high values of N, you will want to increase the maximum stack trace, otherwise you will suffer a segmentation fault * In Ubuntu/bash you can do this with $ ulimit -Ss 256000 ## ~256Mbs * And confirm it with $ ulimit -a */ /* Helpers */ void print(double *ys){ for(int i=0; i