def eq(max_x, x):
    """Returns equally separated decreasing float values from 1 to 0 depending on the maximu value of x

    Parameters
    ----------
    max_x : int
        maximum x value (maximum number of steps)
    x : int
        current x value (step)

    Returns
    -------
    float
        y value

    Example
    -------
    >>> eq(3, 0)
    1.0
    >>> eq(3, 1)
    0.6666666666666667
    >>> eq(3, 3)
    0.0
    """
    return ((-1/max_x) * x) + 1