Created
July 7, 2017 22:45
-
-
Save ledif/7e7cfe1e24e780ef5012c9a6e5d84b16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
int main(int argc, char* argv[]) | |
{ | |
constexpr int iters = 100000; | |
double x = 2.321232; | |
for (std::size_t i = 0; i < iters; ++i) | |
x = std::hypot(x, std::sin(x)); | |
std::cout << x << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment