I more or less understand / imagine the typical user-defined logic which is executed:
- after
FE_OVERFLOWorFE_UNDERFLOWis raised: not critical case: try to recover by, for example, adjusting some values / coefficients and redo the computations; - after
FE_INVALIDorFE_DIVBYZEROis raised: critical case: stop the machine OR reboot the machine.
However, what is the typical user-defined logic which is executed after FE_INEXACT is raised? Any examples, experiences, best practices?
Extra: In presentation «Beyond Floating Point: Next-Generation Computer Arithmetic» John L. Gustafson provides the following opinion (page 5):
the “inexact” flag is useless
Any comments / views on this opinion?