Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. double x1=(double)M_PI/6.0;
  6. double wyn1=0.0;
  7. double wyn2=0.0;
  8. double wyn3=0.0;
  9. double wyn4=0.0;
  10. for(int i =0;i<=30;i++)
  11. {
  12. wyn1=(4.0*cos(x1)*cos(x1))-3.0;
  13. wyn2=(2.0*cos(2.0*x1))-1;
  14. wyn3=cos(3.0*x1)/cos(x1);
  15. wyn4=1.0-(4.0*sin(x1)*sin(x1));
  16. cout << "dla x="<<x1<<"\n" <<"f1(x)="<<wyn1<<"\n"<<"f2(x)="<<wyn2<<"\n""f3(x)="<<wyn3<<"\n"<<"f4(x)="<<wyn4<<"\n";
  17. x1=x1+M_PI;
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement