Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <cmath>
  4. using namespace std;
  5. const double e=0.00005;
  6.  
  7.  
  8. int _tmain(int argc, _TCHAR* argv[])
  9. {
  10. float x,y;
  11. int n,j;
  12. cin>>n;
  13. for(int j=0;j<n;j++)
  14. {
  15. cin>>x;
  16. y=1;
  17. while (fabs(y)>e)
  18. {
  19. 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)));
  20. }
  21. cout<<y<<endl;
  22. }
  23. system("pause");
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement