def METHOD_NAME(x):
    """Heaviside function. Returns 1 if x>0, and 0 otherwise.
    Examples
    --------
    >>> heaviside(2)
    1
    >>> heaviside(-1)
    0
    """
    if x >= 0:
        return 1
    else:
        return 0