test | Any valid function expression. Adams Solver (C++) evaluated the test expression to determine which branch of the arithmetic IF, lt, eq, or gt will be selected. |
lt | Any valid function expression. If the value of the test expression is less than zero, Adams Solver (C++) evaluates the lt expression and the IF function takes the value of lt. Otherwise, the lt expression is not evaluated. |
eq | Any valid function expression. If the value of the test expression is equal to zero, Adams Solver (C++) evaluates the eq expression and the IF function takes the value of eq. Otherwise, the eq expression is not evaluated. |
gt | Any valid function expression. If the value of the test expression is greater than zero, Adams Solver (C++) evaluates the gt expression and the IF function takes the value of gt. Otherwise, the gt expression is not evaluated. |
Caution: | When using an arithmetic IF function, ensure that the resulting function is continuous. If the function is discontinuous, Adams Solver (C++) may fail to find a solution when it encounters the discontinuity. Even the greater reliability can be achieved if continuity of the first derivative can be ensured. Much greater care is required when using an arithmetic IF function to define a MOTION or GCON element. In this case, a continuous second derivative is also required. The use of arithmetic IF functions to define MOTION and GCON elements is best avoided. |