CARVIEW |
Select Language
HTTP/2 200
date: Tue, 14 Oct 2025 06:20:53 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=69cb88760ac5f3acffc70d2bb7dea5f3ad1969b0f3b7fbee90992a984070f2dea%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22dPMU19zogv2NulInsDuHcS2BpkM1u_rD%22%3B%7D; HttpOnly; Path=/
cf-ray: 98e4f92e18243585-BLR
A - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "bits/stdc++.h"
- using namespace std;
- const int maxN = 1000;
- double x[maxN];
- double get (double x) {
- return 3 * x - cos(x) - 1;
- }
- bool check (double dx, double dy) {
- string x = to_string(dx);
- string y = to_string(dy);
- return x == y;
- }
- int main () {
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- double l = 0.0, r = 10.0;
- x[0] = 0.0;
- for (int rep = 0; rep <= 70; ++rep) {
- double mid = (l + r) / 2;
- if (get(mid) >= 0.0) {
- r = mid;
- x[0] = mid;
- } else {
- l = mid;
- }
- }
- //x[0] = 0.6;
- double pi_not = (1 / 3.0) * (-sin(x[0]));
- if (pi_not < 1) {
- cout << pi_not << " Is less then " << 1 << '\n';
- }
- for (int i = 1; i <= 100; ++i) {
- x[i] = (cos(x[i - 1]) + 1) / 3.0;
- if (check(x[i], x[i - 1])) {
- cout << "Iteration : " << i << ' ' << "and Value " << x[i] << '\n';
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅ Make $2500 in 20 minutes⭐ X
JavaScript | 1 sec ago | 0.25 KB
-
⭐⭐⭐Free Giftcards Method⭐⭐
Java | 5 sec ago | 0.15 KB
-
⭐⭐⭐Exchange Exploit⭐⭐
Java | 6 sec ago | 0.15 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D A⭐⭐
Java | 16 sec ago | 0.15 KB
-
✅ Marketplace Glitch ✅ Working NEVER SEEN BE...
JavaScript | 17 sec ago | 0.25 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 17 sec ago | 0.15 KB
-
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 27 sec ago | 0.15 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 28 sec ago | 0.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand