Learning Scientific Programming with Python (2nd edition)
P10.1.2: Determining the machine-epsilon
Question P10.1.2
Write a function to determine the machine epsilon of a numerical data type (float
, np.float64
, np.longdouble
, np.float128
(if it exists on your system), int
, etc.).