I suspect the differences result from differences in how floating point is handled on the different systems affecting the cumulated error from the sequence of calculations.
You could try re-implementing using Math::BigFloat and setting a sufficiently large (or is that small?) precision so that the cumulated error is sufficiently small.
If my guess is correct, you might find What Every Computer Scientist Should Know About Floating-Point Arithmetic helpful.
In reply to Re: Calculation discrepancy between Perl versions
by ig
in thread Calculation discrepancy between Perl versions
by oko1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |