Spike Function (Not in Base Package)

Generates the spike function for any real number x. The spike function is defined by spike(x) = 1 if 0<=x<1 and 0 elsewhere. Details

x is any real number.
spike(x) is the value of spike(x) for the given value of x.

Spike Function Details

Note  You can define more complex functions by variation and combination of the Step Function, Spike Function, and Square Function VIs, respectively.

The diagram below illustrates spike(x) – spike(–x) in the interval (–4.0, 4.0).