Without going into unnecessary data, is it possible for operations with floating point numbers (x86_64) to be returned - despite slight variations in their results based on identical input data? Is even one bit different?
I mimic a mostly chaotic system, and I expect that small changes in the data will have visible effects. However, I expected that with the same data the behavior of the program will be fixed. This is not the case. I get visible but acceptable differences with every run of the program.
I think I left some kind of variable uninitialized somewhere ...
I use C ++ and Python.
ANSWER
Russell's answer is correct. Floating point operations are deterministic. Non-determinism was caused by a dangling pointer.
source
share