def _as_inexact(x):
    x = asarray(x)
    if not np.issubdtype(x.dtype, np.inexact):
        return asarray(x, dtype=np.float_)
    return x
Return `x` as an array, of either floats or complex floats
dataset/ETHPy150Open scipy/scipy/scipy/optimize/nonlin.py/_as_inexact