title: converting equation to c program
body: <p>I want to convert this equation in C program to solve equation but result is always wrong. I want to convert all three encircled equation to C code. I have made code to first two but please check what is wrong.</p>
  
  <p><img src="https://i.stack.imgur.com/bB9CW.jpg" alt="Equations Here"></p>
  
  <p>code for first equation</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  
  int main()
  {
      /* Define temporary variables */
      double r1,r2,u;
      double upper,lower,value,result;
  
      printf("Enter coefficients r1");
      scanf("%f",&amp;r1);
  
      printf("Enter coefficients r2 ");
      scanf("%f,&amp;r2);
  
      printf("Enter coefficients u ");
      scanf("%f",&amp;u);
  
      /* Assign the value we will find the cosh of */
      value = r1*r2;
  
      /* Calculate the Hyperbolic Cosine of value */
      upper = acos(value);
  
      lower = sqrt((u*u)+1) - u;
  
      result = upper/lower;
  
      /* Display the result of the calculation */
      printf("The spinner rotaiton angle is %f",result );
  
      return 0;
  }
  </code></pre>
  
  <p>code for second equation</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  #include&lt;stdlib.h&gt;
  
  int main()
  {
      /* Define temporary variables */
      double r,w,u;
      double a1,result;
  
      printf("Enter coefficients R");
      scanf("%f",&amp;r);
  
      printf("Enter coefficients w angular velocity ");
      scanf("%f,&amp;w);
  
      printf("Enter coefficients u cofficient of friction");
      scanf("%f",&amp;u);
  
      a1 = sqrt((u*u)+1) - u;
      a2 = a1*a1;
      a3 = sqrt (1 + a2);
      result = r * w * a3;
  
  
      /* Display the result of the calculation */
      printf("The departure velocity is %f",result);
      scanf(%f);
  
      return 0;
  }
  </code></pre>