Changeset 3849 for anuga_core/source/anuga/utilities/numerical_tools.py
- Timestamp:
- Oct 24, 2006, 4:14:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/numerical_tools.py
r3749 r3849 288 288 return bins 289 289 290 290 def get_machine_precision(): 291 """Calculate the machine precision for Floats 292 """ 293 294 epsilon = 1. 295 while epsilon/2 + 1. > 1.: 296 epsilon /= 2 297 298 return epsilon 291 299 292 300 ####################################################################
Note: See TracChangeset
for help on using the changeset viewer.