Advertisement
mr_lubinets

Untitled

May 28th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <math.h>
  5.  
  6.  
  7. float funk(float yma[], int n){
  8.    return 1-2*pow(yma[n],2)*sin(yma[n]);
  9. }
  10.  
  11.  
  12. int main()
  13. {
  14.     float yma[6];
  15.     float sma[6];
  16.     int i;
  17.  
  18.  
  19.     for(i = 0; i < 6 ; i++)
  20.         scanf("%f",&yma[i]);
  21.  
  22.  
  23.     for(i = 0; i < 6 ; i++){
  24.         sma[i] = sqrt(abs(cos(funk(yma,i))));
  25.         printf("%f",sma[i]);
  26.     }
  27.  
  28.  
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement