SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <reg51.h>
  2. #include <math.h>
  3.  
  4. float x;
  5. unsigned char xdata y[100], i = 0;
  6. main()
  7. {
  8.     i=0;
  9.     for(x = 0; x < 6.28 ; x += 0.0628)
  10.         y[i++] = P3 = cos(x) * 100 + 100;
  11.     while(1)
  12.     {
  13.         i = 0;
  14.         for(x = 0; x < 6.28 ; x += 0.0628)
  15.         {
  16.             cos(x);
  17.             P3 = y[i++];
  18.         }
  19.     }
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top