11 double* a1
= malloc(1000 * sizeof(double));
12 double* a2
= malloc(1000 * sizeof(double));
13 for (i
= 0; i
< 1000; i
++) {
21 for (j
= 0; j
< 5000; j
++) {
22 for (i
= 0; i
< 1000; i
++) {
23 s
+= (a1
[i
] - a2
[i
]) * (a1
[i
] + a2
[i
]) - sqrt(r
+ 1.0);
27 printf("s = %f, r = %f\n", s
, r
);