Advertisement
Infra_HDC

cos-2

May 3rd, 2019
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. $ ./cos-2
  2. cos(2)=-0.416147
  3. cos(2gradusa)=0.999391
  4. $ cat cos-2.c
  5. #include <stdio.h>
  6. #include <math.h>
  7.  
  8. void main() {
  9. printf("cos(2)=%f\n",cos(2));
  10. printf("cos(2gradusa)=%f\n",cos(2*M_PI/180));
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement