Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <reg51.h>
- #include <math.h>
- float x;
- unsigned char xdata y[100], i = 0;
- main()
- {
- i=0;
- for(x = 0; x < 6.28 ; x += 0.0628)
- y[i++] = P3 = cos(x) * 100 + 100;
- while(1)
- {
- i = 0;
- for(x = 0; x < 6.28 ; x += 0.0628)
- {
- cos(x);
- P3 = y[i++];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement