
Press (MTH1 V E U T R V . The returned values are the same as
the displayed components.
13
Vector Math Commands
A vector, like a real number, is a single object. So you can use vectors
as arguments for commands. You can add and subtract vectors—
you can multiply and divide vectors by scalars—and you can execute
special vector commands (DOT, CROSS, and ABS). These special
commands interpret their arguments and return results using the
current coordinate mode and can be found in the MTH VECTR
menu((MTH) VECTR).
Command/Description
Example
Input Output
ABS Prefix. Returns the
scalar magnitude of vector,
calculated as the Frobenius
norm—defined as the square
root of the sum of the
squares of the absolute value
of each element.
r 2 ”3 4 ]
1“ 5^3051640
DOT Command. Returns
the inner or dot product (a
scalar) of two vectors of
equal dimensions.
l;C “1 28 ]
l: 24
CROSS Command.
Returns the cross product (a
3D-vector) of two vectors.
Two element vectors will
have a third zero element
added during execution.
l;C “1 2 1 ]
13-4 Vectors and Transforms
Comentários a estes Manuais