Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. clock_t start = clock(), end;
  2. for (x = a; a <= b; a += step, x = a) {
  3. result += fabs(sin(x) - sqrt(x));
  4. }
  5. end = clock();
  6. printf(" %lf\n", result);
  7. printf("Time: %lf ", (double)(end - start) / CLOCKS_PER_SEC);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement