Table of Contents

abs ()

abs - absolute value of an object

Syntax

A[S1,..,Sn] = abs (B[S1,..,Sn])

Defaults

None

Description

Places the absolute value of the elements in B in the elements of A.

(A)s1,..,sn = (B)s1,..,sn if (B)s1,..,sn >= 0

(A)s1,..,sn = - (B)s1,..,sn if (B)s1,..,sn < 0

Consistency Rules

None

Inheritance Rules

SIuom (A) = SIuom (B)
AltUom (A) = AltUom (B)
Entity (A) = Entity (B)

Current Restrictions

Object (B) = {constant, array}

See Also

boolgt, boolge, min, max

Examples

A[t] = abs (B[t])

If B[t] is an object containing the values:

this statement gives an object, A[t] containing the values:

Typical Syntax Errors

not available yet