Calculate arccosine: acos : Cos ACos « Math « C / ANSI-C






Calculate arccosine: acos

Calculate arccosine: acos

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

#define PI 3.14159265

int main ()
{
  double v, result;
  v = 0.5;
  
  result = acos ( v ) * 180 / PI;
  
  printf ("Arccosine of %lf is %lf\n degrees", v, result );
  
  return 0;
}



           
       








Related examples in the same category

1.How to use acosHow to use acos
2.How to use cosHow to use cos
3.How to use coshHow to use cosh
4.Calculate cosine: how to use cos Calculate cosine: how to use cos
5.Calculate hyperbolic cosine:how to use cosh