A two-dimensional vector is an ordered pair of real numbers, called components . Vectors have both magnitude and direction .The magnitude of a vector is the length of the directed line, as computed by the Pythagorean theorem. If a = < x 1 , y 1 >, then the magnitude of the vector is |a| 2 = x 12 + y 12.
Two vectors may be added (or subtracted), by components. Geometrically, this is called the triangle or parallelogram law .
A scalar is a real number (or alternately, a vector with one component!)
A vector can be scaled, by multiplication with a scalar.
A unit vector is a vector with magnitude one.
The standard basis vectors in two dimensions are given by vectors
i=<1,0>andj=<0,1>.These are unit vectors in the directions of the x and y axis, respectively.
Reset Maple: restart;
Include Linear Algebra Package: with(linalg):
Define First Vector: A := vector([1,3]);
Define Second Vector: B := vector( [4,4] );
Compute difference, B-A: v := add(-A,B);