Next: Vector and Matrix Display Formats, Previous: Statistical Operations on Vectors, Up: Vector/Matrix Functions [Contents][Index]
The commands in this section allow for more general operations on the elements of vectors.
The simplest of these operations is V A (calc-apply
)
[apply
], which applies a given operator to the elements of a vector.
For example, applying the hypothetical function f
to the vector
‘[1, 2, 3]’ would produce the function call ‘f(1, 2, 3)’.
Applying the +
function to the vector ‘[a, b]’ gives
‘a + b’. Applying +
to the vector ‘[a, b, c]’ is an
error, since the +
function expects exactly two arguments.
While V A is useful in some cases, you will usually find that either V R or V M, described below, is closer to what you want.