What is:
2 + 4( 3, 2, 5)T
(Trick Question!) The expression is ill-formed. There is no operator + that does this: real number + vector
It is helpful to use parentheses to show exactly what you mean in expressions containing mixed types and operators. Look at this:
(2 + 1)(3, -5)T + 4(1, 2)T
The first "+" is scalar addition; the second "+" is column matrix addition. You should perform the operations like this:
(2 + 1)(3, -5)T + 4(1, 2)T = 3(3, -5)T + 4(1, 2)T = (3×3, 3× -5)T + (4×1, 4×2)T = (9, -15)T + (4, 8)T = (13, -7)T
This is not as bad as it looks. Keep track of each operator, the types of its operands, and the type of its result.
Evaluate the following:
-1 (1, 2, -3)T - (2 + 1)(1, 0, 1)T