python numpy machine epsilon
An easier way to get the machine epsilon for a given float type is to use np.finfo():
An easier way to get the machine epsilon for a given float type is to use np.finfo():
The information is available in sys.float_info, which corresponds to float.h in C99.