- Timestamp:
- 09/29/2008 09:12:43 AM (3 months ago)
- Files:
-
- 1 modified
-
trunk/fipy/tools/numerix.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fipy/tools/numerix.py
r2726 r2738 7 7 # FILE: "numerix.py" 8 8 # created: 1/10/04 {10:23:17 AM} 9 # last update: 6/13/08 {6:38:52 PM}9 # last update: 9/29/08 {9:52:36 AM} 10 10 # Author: Jonathan Guyer <guyer@nist.gov> 11 11 # Author: Daniel Wheeler <daniel.wheeler@nist.gov> … … 1074 1074 return MA.allclose(first, second, atol=atol, rtol=rtol) 1075 1075 1076 def isclose(first, second, rtol=1.e-5, atol=1.e-8): 1077 r""" 1078 Returns which elements of `first` and `second` are equal, subect to the given 1079 relative and absolute tolerances, such that:: 1080 1081 | first - second | < atol + rtol * | second | 1082 1083 This means essentially that both elements are small compared to `atol` or 1084 their difference divided by `second`'s value is small compared to `rtol`. 1085 """ 1086 return abs(first - second) < atol + rtol * abs(second) 1076 1087 1077 1088 def take(a, indices, axis=0, fill_value=None):
FiPy: A Finite Volume PDE Solver Using Python