fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void) {
  5. const float u = 10.05;
  6. const float v = 0.35;
  7.  
  8. float b = 0.0;
  9.  
  10. printf("Input values: u = %f, v = %f\n", u, v);
  11.  
  12. float inner_expression = pow(sin(atan(u)), 2) + cos(v);
  13.  
  14.  
  15. b = exp((1.0/2.0) * log(inner_expression));
  16.  
  17. printf("Final result is b = %f\n", b);
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5320KB
stdin
stdout
Input values: u = 10.050000, v = 0.350000
Final result is b = 1.389089