HyperWorks Solvers

MOD

MOD

Previous topic Next topic No expanding text in this topic  

MOD

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Format

MOD(a,b)

Description

The MOD function returns the remainder when a is divided by b.

MOD(a,b) = a - int(a/b) * b

Example

The example below eliminates full rotations from the angle AX(22,11)

<Reference_Variable

    id                  = "1"

    label               = "Modulo Example"

    type                = "EXPRESSION"

    expr                = "MOD(AX(22,11),2*PI)"

/>

Arguments

a

Any valid function expression.

b

Any valid function expression that does not evaluate to zero

Comments

The MOD function is discontinuous; be very careful when using it.

See Also:

Functions

Command Statements

Model Statements

Notation and Syntax