A function on the Reals is a step function if it can be written as a finite linear combination of semi-open intervals . Therefore, a step function can be written as