while (1)
{
double in = 0.0;
cin >> in;
while (1)
{
in = 1.0 / cosh(in);
std::cout << std::fixed;
cout << "out:" << in << endl << endl;
system("pause");
}
}
1.0
out:0.648054
Press any key to continue . . .
out:0.821396
Press any key to continue . . .
out:0.737059
Press any key to continue . . .
out:0.778726
Press any key to continue . . .
out:0.758241
Press any key to continue . . .
out:0.768342
Press any key to continue . . .
out:0.763368
Press any key to continue . . .
out:0.765819
Press any key to continue . . .
out:0.764611
Press any key to continue . . .
out:0.765206
Press any key to continue . . .
out:0.764913
Press any key to continue . . .
out:0.765058
Press any key to continue . . .
out:0.764986
Press any key to continue . . .
out:0.765022
Press any key to continue . . .
out:0.765004
Press any key to continue . . .
out:0.765013
Press any key to continue . . .
out:0.765009
Press any key to continue . . .
out:0.765011
Press any key to continue . . .
out:0.765010
Press any key to continue . . .
out:0.765010
Press any key to continue . . .
out:0.765010
Press any key to continue . . .
I was expecting something like:
0.99
0.98
0.96
0.92
0.80
0.70
0.50
0.40
0.32
0.18
0.15
0.12
0.10
0.09
...
Get the idea?
Umn like a hill would form from numbers.
-
--
----
-------
------------
-------
----
--
-