You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, just my personal comment: I usually work with logs because they improve accuracy of my calculations per se. They are very costly (it is not uncommon for LogExpFunctions to eat up 50% of CPU time in an economic model), but worth it because they handle differing magnitudes so well.
However, I don't need log calculations themselves to be accurate to the last ulp. For my purposes accuracy comes from just using logs, not the logs being super-accurate. At some point diminishing returns kick in.
I've summarized the situation in #135. I don't think it is a matter of losing a bit of precision. The fallbacks can lose almost all precision, and in a larger codebase, it can be quite hard to identify where such loss of precision happens. As mentioned in #45, my opinion is that functions like the ones in this repo should only be defined when they provide reasonable precision.
Activity
tpapp commentedon Nov 9, 2026
Also, just my personal comment: I usually work with logs because they improve accuracy of my calculations per se. They are very costly (it is not uncommon for LogExpFunctions to eat up 50% of CPU time in an economic model), but worth it because they handle differing magnitudes so well.
However, I don't need log calculations themselves to be accurate to the last ulp. For my purposes accuracy comes from just using logs, not the logs being super-accurate. At some point diminishing returns kick in.
andreasnoack commentedon Nov 9, 2026
I've summarized the situation in #135. I don't think it is a matter of losing a bit of precision. The fallbacks can lose almost all precision, and in a larger codebase, it can be quite hard to identify where such loss of precision happens. As mentioned in #45, my opinion is that functions like the ones in this repo should only be defined when they provide reasonable precision.