Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <cmath>
- using namespace std;
- const double e=0.00005;
- int _tmain(int argc, _TCHAR* argv[])
- {
- float x,y;
- int n,j;
- cin>>n;
- for(int j=0;j<n;j++)
- {
- cin>>x;
- y=1;
- while (fabs(y)>e)
- {
- y-=(y*(3*x*x-0,1*x+7)+((x-1)/(x*x-x+1))+(3*pow(cos(y),2)))/((3*x*x-0,1*x+7)-(3*sin(2*y)));
- }
- cout<<y<<endl;
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement