Previous: , Up: Arithmetic expressions   [Contents][Index]


3.1.4.2 Unary forms

Unary or one-operand forms are summarized in the following table, where X stands for the operand.

OpOperandResultDescription
-Xscalar scalarUnary scalar negation.
-XvectorvectorUnary vector negation.
|X|vector scalarVector length.
unit(X)vector vectorUnit vector with same direction.
sqrt(X)scalar scalarScalar square root.
sin(X)scalar scalarTrigonometric sine (X in degrees).
cos(X)scalar scalarTrigonometric cosine (X in degrees).
asin(X)scalar scalarInverse sine (X in degrees).
acos(X)scalar scalarInverse cosine (X in degrees).
atan2(X,Y)scalar scalarPolar angle in degrees of vector [X,Y].
inverse(X)transform transformInverse transform.

Errors are reported when |X|, unit, asin, acos, sqrt, atan2, and inverse fail due to operands outside their respective domains.