Welcome to Adams/Solver Subroutines - Kxcad.net
Welcome to Adams/Solver Subroutines - Kxcad.net
Welcome to Adams/Solver Subroutines - Kxcad.net
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Calling Sequence<br />
CALL STEP5 (x, x0, h0, x1, h1, iord, value, errflg)<br />
Input Arguments<br />
<strong>Welcome</strong> <strong>to</strong> <strong>Adams</strong>/<strong>Solver</strong> <strong>Subroutines</strong><br />
x A double-precision variable that specifies the independent variable.<br />
x0 A double-precision variable that specifies the x value at which the step<br />
function begins.<br />
h0 A double-precision variable that specifies the value of the function before the<br />
step.<br />
x1 A double-precision variable that specifies the x value at which the step<br />
function ends.<br />
h1 A double-precision variable that specifies the value of the function after the<br />
step.<br />
iord An integer variable that defines the order of the derivative that STEP5 is <strong>to</strong><br />
return. The order is usually zero, but it can be one or two.<br />
Output Arguments<br />
errflg A logical (true or false) variable that STEP5 returns <strong>to</strong> the calling<br />
subroutine. If STEP5 detects an error in the subroutine call statement, it sets<br />
errflg <strong>to</strong> true before it returns errflg <strong>to</strong> the calling subroutine.<br />
value A double-precision value the subroutine returns. The value returned<br />
depends on IORD as follows:<br />
Extended Definition Figure 1 below demonstrates the STEP5 function. For a comparison of STEP and<br />
STEP5, and the first derivatives of STEP and STEP5, see:<br />
• STEP (C++ or FORTRAN) function<br />
• STEP5 (C++ or FORTRAN) function<br />
IORD: Value:<br />
0 Value of the function.<br />
1 Partial derivative of the function with respect<br />
<strong>to</strong> x.<br />
2 Second partial derivative of the function with<br />
respect <strong>to</strong> x.<br />
F( x)<br />
∂ F<br />
-----<br />
∂ x<br />
∂ 2 F<br />
∂ x 2<br />
--------<br />
89