Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- double x1=(double)M_PI/6.0;
- double wyn1=0.0;
- double wyn2=0.0;
- double wyn3=0.0;
- double wyn4=0.0;
- for(int i =0;i<=30;i++)
- {
- wyn1=(4.0*cos(x1)*cos(x1))-3.0;
- wyn2=(2.0*cos(2.0*x1))-1;
- wyn3=cos(3.0*x1)/cos(x1);
- wyn4=1.0-(4.0*sin(x1)*sin(x1));
- cout << "dla x="<<x1<<"\n" <<"f1(x)="<<wyn1<<"\n"<<"f2(x)="<<wyn2<<"\n""f3(x)="<<wyn3<<"\n"<<"f4(x)="<<wyn4<<"\n";
- x1=x1+M_PI;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement