STEP5

Provides approximations to the Heaviside step function with a quintic polynomial.
 
Notes:  
STEP5 has continuous first and second derivatives, but its third derivative is discontinuous at x=x0 and x=x1.

See Haversine Step (HAVSIN) for a plot comparing STEP, STEP5, TANH, and Haversine Step (HAVSIN).

Format

STEP5 (x, Begin At, Initial Function Value, End At, Final Function Value)

Arguments

 
x
Independent variable.
Begin At or x0
Real variable that specifies the x value at which the STEP5 function begins.
Initial Function Value or h0
Initial value of the step.
End At or x1
Real variable that specifies the x value at which the STEP5 function ends.
Final Function Value or h1
Final value of the step.

Example

Using a quintic polynomial, the following function defines a smooth step function from time 1 to time 2 with a displacement from 0 to 1:
STEP5(TIME, 1, 0, 2, 1)