Section 5.1 Operations with Vectors
In this section, we will introduce how to perform the arithmetic operations on vectors in Sage. Vectors can be added and subtracted using the
+
and -
operators. The result of adding or subtracting two vectors is a new vector with the same number of components. Vectors can be multiplied by real numbers (scalar multiplication) using the
*
operator. Here is an example of scalar multiplication of a vector by 2.