Zdenek Dvorak wrote:
A data point apparently in favor of this suspect is that the "problem" goes away if double is replaced everywhere with long double...... I suspect there is something wrong with your code (possibly invoking some undefined behavior, using uninitialized variable, sensitivity to rounding errors, or something like that).
Paolo.