Skip to content

Instantly share code, notes, and snippets.

@ledif
Created July 7, 2017 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ledif/7e7cfe1e24e780ef5012c9a6e5d84b16 to your computer and use it in GitHub Desktop.
Save ledif/7e7cfe1e24e780ef5012c9a6e5d84b16 to your computer and use it in GitHub Desktop.
#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