Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- float funk(float yma[], int n){
- return 1-2*pow(yma[n],2)*sin(yma[n]);
- }
- int main()
- {
- float yma[6];
- float sma[6];
- int i;
- for(i = 0; i < 6 ; i++)
- scanf("%f",&yma[i]);
- for(i = 0; i < 6 ; i++){
- sma[i] = sqrt(abs(cos(funk(yma,i))));
- printf("%f",sma[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement