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
In many examples of numerical instability (e.g., overflow, underflow, catastrophic cancellation, etc), we encounter issues with maintaining high precision.
One way to "know" what the "right" answer is would be to leverage fixed precision methods to validate our answers. One such Python package that gives us fixed precision is mpmath.
We can/should consider using it where necessary.
Here is one example where catastrophic cancellation (subtraction of two numbers) raises a problem that can be verified by fixed precision math.
This discussion was converted from issue #1032 on January 23, 2025 12:05.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In many examples of numerical instability (e.g., overflow, underflow, catastrophic cancellation, etc), we encounter issues with maintaining high precision.
One way to "know" what the "right" answer is would be to leverage fixed precision methods to validate our answers. One such Python package that gives us fixed precision is mpmath.
We can/should consider using it where necessary.
Here is one example where catastrophic cancellation (subtraction of two numbers) raises a problem that can be verified by fixed precision math.
Beta Was this translation helpful? Give feedback.
All reactions