diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 22:28:28 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-14 22:28:28 +0000 |
commit | 61b48697e440f76b2337c790ec5ca763cd55200b (patch) | |
tree | da64ece2ba0b6b97deb51c36ca320c64102e9baa /scipy/base/limits.py | |
parent | 575d373479c63a42bc4a729a058da31a74e75d3e (diff) | |
download | numpy-61b48697e440f76b2337c790ec5ca763cd55200b.tar.gz |
Moving things to live under scipy
Diffstat (limited to 'scipy/base/limits.py')
-rw-r--r-- | scipy/base/limits.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scipy/base/limits.py b/scipy/base/limits.py new file mode 100644 index 000000000..bfea296f5 --- /dev/null +++ b/scipy/base/limits.py @@ -0,0 +1,30 @@ +""" Machine limits for Float32 and Float64. +""" + +__all__ = ['float_epsilon','float_tiny','float_min', + 'float_max','float_precision','float_resolution', + 'double_epsilon','double_tiny','double_min','double_max', + 'double_precision','double_resolution'] + +from machar import machar_double, machar_single + +float_epsilon = machar_single.epsilon +float_tiny = machar_single.tiny +float_max = machar_single.huge +float_min = -float_max +float_precision = machar_single.precision +float_resolution = machar_single.resolution + +double_epsilon = machar_double.epsilon +double_tiny = machar_double.tiny +double_max = machar_double.huge +double_min = -double_max +double_precision = machar_double.precision +double_resolution = machar_double.resolution + +if __name__ == '__main__': + print 'float epsilon:',float_epsilon + print 'float tiny:',float_tiny + print 'double epsilon:',double_epsilon + print 'double tiny:',double_tiny + |