Step functionmaths Step functionThis is a function $f: X \rightarrow Y$ where it is defined piecewise for different region of $X$.