Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <cmath>
- using namespace std;
- int main()
- {
- double z,y1,y2,x,e,min=-100;
- cin >> e;
- y2 = 1 / (cos(sin(min)));
- for(x = -100; x <= 100; x = x + e)
- {
- z = cos(sin(x));
- if(abs(z) > e)
- {
- y1 = 1 / z;
- if(abs(y1) < abs(y2))
- {
- min = x;
- y2 = y1;
- }
- }
- }
- cout << "min = " << min << endl;
- cout << "y2 = " << y2;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment