I'm having difficulties in calculating values of the function f(i) to later write them out into a text file by using std::ofstream.
f(i) = cosh(-0.28863383*i)/cosh(0.29452431), i = 1,3,5,...
(cosh: hyperbolic consine)
This function f(i) is actual strictly monotonous decreasing,
why I'm wondering about increasing values for f(i > 107) in my text file.
The smallest value I get with f(i = 105) = 2.43079e-013
while the largest value that appears in the text file is f(i = 543) = 8.43677e+238.
For f(i > 544) I subsequently get "1.#INF".
Could the data type double somehow be responsible for the increasing values?
I do not know what was going on inside my brain...
The constant in the numerator was programmed not to be a constant.
This "constant" was calculated according to the scheme k = k + j*b, in which
b und k were real constants and j was stepwise increased in a higher-level loop.
I embarrassingly missed to change the denotation of the first k to something else,
which led to a decreasing nominator with increasing i and increasing values of f(i) ...
With the renamed "constant" in the lowest-level loop, my programm ran a successful calculation.
I'm sorry and very grateful for the time you spend on this!