Page 9-9
Simple operations with vectors
To illustrate operations with vectors we will use the vectors A, u2, u3, v2, and
v3, stored in an earlier exercise.
Changing sign
To change the sign of a vector use the key \, e.g.,
Addition, subtraction
Addition and subtraction of vectors require that the two vector operands have
the same length:
Attempting to add or subtract vectors of different length produces an error
message (Invalid Dimension), e.g., v2+v3, u2+u3, A+v3, etc.
Multiplication by a scalar, and division by a scalar
Multiplication by a scalar or division by a scalar is straightforward: