/* sum1.c compute sum = atan(1) + atan(2) + ... + atan(n) */ #include #include #include #include int main(int argc, char** argv) { long n = atol(argv[1]); double sum; long i; double t1, t2; //initialize sum sum = 0; t1 = omp_get_wtime(); printf("Start. "); for (i=0; i