Files from the Unseminar on precise computing on 2025/03/12
- Python test cases
- Julia example: pi approximation (Pluto Notebook)
- R example: banker's rounding (Jupyter Notebook)
- Recommendations (python Jupyter Notebook)
10.0 * 0.1 == 1.00.1 * 0.1 == 0.010.5 * 0.5 == 0.250.1 + 0.1 == 0.20.1 + 0.1 + 0.1 == 0.30.1 + 0.1 + 0.1 + 0.1 == 0.4(0.1 + 0.1) + 1 == 0.1 + (0.1 + 1)1_00000_00000_00000_00000 + 1 > 1_00000_00000_00000_000001e20 + 1 > 1e201e20 + 1000 > 1e200.1**25 > 00.1**5**5 > 0np.all(a>0)np.sum(a) > 0
For 13 and 14:
import numpy as np
large_number = 2**63-1
a = np.array([large_number, large_number])