SHARE
TWEET

Untitled

a guest Oct 11th, 2014 181 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. #define BASE 2.01
  5. #define BASE2 2
  6. #define EXP1 13
  7. #define REPS 1000000
  8.  
  9. int main ()
  10. {
  11.  
  12.   long double temp, final, sqroot;
  13.   int i;
  14.  
  15.   for (i=0; i < REPS; i++)
  16.   {
  17.     temp= powl (BASE2,EXP1);
  18.     final = powl (BASE,temp);
  19.     sqroot = sqrtl(final);
  20.     final = logl(sqroot);
  21.  
  22.   }
  23.  
  24.   return 0;
  25.  
  26. }
RAW Paste Data
Top