


% -*- texinfo -*-
% @deftypefn {Function File} {} heaviside(@var{x})
% @deftypefnx{Function File} {} heaviside(@var{x}, @var{zero_value})
% Compute the Heaviside step function.
%
% The Heaviside function is defined as
%
% @example
% Heaviside (@var{x}) = 1, @var{x} > 0
% Heaviside (@var{x}) = 0, @var{x} < 0
% @end example
%
% @noindent
% The value of the Heaviside function at @var{x} = 0 is by default 0.5,
% but can be changed via the optional second input argument.
% @seealso{dirac}
% @end deftypefn