math4610

Routine Name: float_machine_epsilon

Author: David Merkley

Language: Python

Description/Purpose: Calculates the machine epsilon for a single precision number

Input: N/A

Output: single machine precision error

Implementation/Code:

    import numpy as np

    def float_machine_epsilon():
        print(np.finfo(np.float32).eps)