rectangular_function