Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- const double eps = 1e-9; // 1 / 10^9
- int main()
- {
- double L = 0.0;
- double R = 20000.0;
- while(fabs(R - L) > eps) {
- double mid = L + (R - L) / 2.0;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement