Explanation:
As we know, for any function domain is referred to as the set of input values that can be taken for an independent variable in the given function. Range of a function is defined as the set of output values generated for the domain (input values) of the function. In the case of a step function, for each value of x, f(x) takes the value of the greatest integer, less than or equal to x. For example:
[-2.19] = -3
[3.67] = 3
[-0.83] = -1
The domain of this function is a group of real numbers that are divided into intervals such as [-5, 3), [-4, 2), [-3, 1), [-2, 0) and so on. This explains the domain and range relations of a step function.
This can be generalized as given below:
[x] = -2, -2 ≤ x < -1
[x] = -1, -1 ≤ x < 0
[x] = 0, 0 ≤ x < 1
[x] = 1, 1 ≤ x < 2