Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- //#include <conio.h>
- using namespace std;
- int main()
- {
- double x0=0.6,y0=0.8,x,y,d1,d2,eps=0.000001;
- setlocale(LC_ALL, "Russian");
- do
- {
- x=(sin(x0 + y0) - 0.1) / 1.2;
- y=sqrt(1 - x0 * x0);
- d1=sin(x + y) - 1.2 * x - 0.1;
- d2=x * x + y * y - 1;
- x0=x;
- y0=y;
- }while(abs(d1)>eps && abs(d2)>eps);
- cout<<"x="<<x<<" "<<"y="<<y<<endl;
- //getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement