The solution is to use a continuous function, not a step function.
What should be the output of the function?
What should be the output of the function?