Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h>
- #include <stdio.h>
- double test1 = 213.444;
- double test3;
- float test2 = 213.444;
- double test4;
- float test5;
- int main(){
- test3 = sin(test1);
- test4 = sin((double)test2);
- test5 = sinf(test2);
- printf("%f\n", test3);
- printf("%f\n", test4);
- printf("%f\n", test5);
- return 0;
- }
- Results:
- xtroseimac:test kevin$ gcc -o mtest mtest.c
- xtroseimac:test kevin$ ./mtest
- -0.183259
- -0.183259
- -0.183259
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement