       ``( 0, if x < 0``
    2) ``Heaviside(x) = < ( undefined if x==0 [1]``
                        ``( 1, if x > 0``
    3) ``Max(0,x).diff(x) = Heaviside(x)``

    .. [1] Regarding to the value at 0, Mathematica defines ``H(0) = 1``,
           but Maple uses ``H(0) = undefined``.  Different application areas
           may have specific conventions.  For example, in control theory, it
           is common practice to assume ``H(0) == 0`` to match the Laplace
           transform of a DiracDelta distribution.

    To specify the value of Heaviside at x=0, a second argument can be given.
    Omit this 2nd argument or pass ``None`` to recover the default behavior.

    >>> from sympy import Heaviside, S
    >>> from sympy.abc import x
    >>> Heaviside(9)
    1
    >>> Heaviside(-9)
    0
    >>> Heaviside(0)
    Heaviside(0)
    >>> Heaviside(0, S.Half)
    1/2
    >>> (Heaviside(x) + 1).replace(Heaviside(x), Heaviside(x, 1))
    Heaviside(x, 1) + 1

    See Also
    ========

    DiracDelta

    References
    ==========

    .. [2] http://mathworld.wolfram.com/HeavisideStepFunction.html
    .. [3] http://dlmf.nist.gov/1.16#iv

    Tr