def rmin(a, b):
    """
    Min function for real numbers

    Parameters
    ----------
    a: scalar
    b: scalar

    Returns
    -------
    scalar

    """
    # seems to be much faster than the built-in
    return a if a < b else b