Navigation

Operators and Keywords

Function List:

C++ API

Function File: heaviside(x)

Function File: heaviside(x, zero_value)

Compute the Heaviside step function.

The Heaviside function is defined as

            Heaviside (x) = 1,   x > 0
            Heaviside (x) = 0,   x < 0

The value of the Heaviside function at x = 0 is by default 0.5, but can be changed via the optional second input argument.

See also: dirac

Package: specfun