Precisely Defining Curves

See this link for the step function: Step function generator