Contact: aviboots(AT)netvision.net.il
40,760 questions
53,134 answers
573 users
#include <stdio.h> #include <math.h> int main(void) { double d = acos(-1); printf("%lf", d); return 0; } /* run: 3.141593 */
#include <stdio.h> #include <math.h> int main(void) { float f = acosf(0); printf("%f", f); return 0; } /* run: 1.570796 */
#include <stdio.h> #include <math.h> int main(void) { long double ld = acosf(0.5); printf("%Lf", ld); return 0; } /* run: 1.047198 */