• Example: To add Vector A = (1 –2 3) to Vector B = (4 5
–6). (Result: (5 3 –3) )
(3-dimensional Vector A)
(Element input)
(3-dimensional Vector B)
(Element input)
(VctA + VctB)
• An error occurs in the above procedure if you specify
vectors of different dimensions.
k Calculating the Scalar Product of
a Vector
Use the procedure shown below to obtain the scalar
product (fixed multiple) of a vector.
• Example: To multiply Vector C = (–7.8 9) by 5.
(Result: (–39 45) )
(2-dimensional Vector C)
(Element input)
(5 VctC)
k Calculating the Inner Product of
Two Vectors
Use the procedure described below to obtain the inner
product ( ) for two vectors.
• Example: To calculate the inner product of Vector A and
Vector B
(VctA VctB)
• An error occurs in the above procedure if you specify
vectors of different dimensions.
A z 1
= D
1
A z 1
=
4
A z 3
A z 3
A z 1
D
- A z 3
5
A z 3
A z 3
E-20
1
(Dim)
=
2
2
(Dim)
= D
5
1
(Vct)
2
(Vct)
3
(Dim)
l
=
7
8
3
(Vct)
(Result: – 24 )
(Vct)
A z r 1
2
(Vct)
=
(A) 3
= t
3
=
(B) 3
= t
6
+
(A)
=
(B)
=
(C) 2
= t
9
=
(C)
1
(A)
(Dot)
=
(B)