Rect Algorithm

The rectangular function (also known as the rectangle function, rect function, pi function, gate function, unit pulsing, or the normalized boxcar function) is any function which is zero over the entire real line except for a single interval where it is equal to a constant, A.

Rect source code, pseudocode and analysis

COMING SOON!