4 ms·
.. or not use an algorithm that depends on the hardware implementation of floating point math? How about just comparing the previous & current iteration values
by lallysingh 16y ago
.. or not use an algorithm that depends on the hardware implementation of floating point math? How about just comparing the previous & current iteration values? If you're not making any progress, you're done.
- sausagefeet 16y agoYou'd probably want to compare to an epsilon AND exact compare, otherwise you could oscillate between two values.