def fun_with_nan(self, x):
        return x if 1e-8 <= np.abs(x) else np.nan
dataset/ETHPy150Open scipy/scipy/scipy/optimize/tests/test__numdiff.py/TestApproxDerivativesDense.fun_with_nan/swapped operands of `<=`