How to calculate inverse cosine of a number in C

1 Answer

0 votes
#include <stdio.h>
#include <math.h>

int main(void) {
    printf("%lf\n", acos(0.5));
    
    printf("%lf\n", acos(-0.5));
}



/*
run:

1.047198
2.094395

*/

 



answered Aug 1, 2022 by avibootz

Related questions

...