heaviside( x )

The Heaviside step function in SageMath. Defined by

\[ H(x) = \begin{cases} 0 \ , \ x < 0 \\ 1 \ , \ x > 0 \end{cases} \]

Differs from unit_step in definition at the origin.

Plot on the real axis:

Special values:

Related functions:   unit_step

Function category: generalized functions sagemath-docs