x | A double-precision variable that specifies the independent variable. |
x0 | A double-precision variable that specifies the x value at which the step function begins. |
h0 | A double-precision variable that specifies the value of the function before the step. |
x1 | A double-precision variable that specifies the x value at which the step function ends. |
h1 | A double-precision variable that specifies the value of the function after the step. |
iord | An integer variable that defines the order of the derivative that STEP5 is to return. The order is usually zero, but it can be one or two. |
errflg | A logical (true or false) variable that STEP5 returns to the calling subroutine. If STEP5 detects an error in the subroutine call statement, it sets errflg to true before it returns errflg to the calling subroutine. |
value | A double-precision value the subroutine returns. The value returned depends on IORD as follows: ![]() |




Caution: | The value x1 must not equal x0. Equal values of x1 and x0 imply a discontinuous step, which STEP5 cannot fit. |