Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clock_t start = clock(), end;
- for (x = a; a <= b; a += step, x = a) {
- result += fabs(sin(x) - sqrt(x));
- }
- end = clock();
- printf(" %lf\n", result);
- printf("Time: %lf ", (double)(end - start) / CLOCKS_PER_SEC);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement