Does it mathematically make sense for a number to be added to a vector (or matrix for that matter)?

equissupnica7

equissupnica7

Answered question

2022-07-17

Does it mathematically make sense for a number to be added to a vector (or matrix for that matter)? When I put 4 + [ 1 , 2 , 3 ] into Wolfram Alpha it gives me [ 5 , 6 , 7 ], i.e. the number is added to each item, but this doesn't seem correct to me as I would have thought that the number would just be added to the 1st item of the vector - or is neither correct?

Answer & Explanation

Urijah Hahn

Urijah Hahn

Beginner2022-07-18Added 13 answers

Formally speaking, if x R and v = ( v k ) k = 1 n R n , for n>1, then x + v is not a defined operation, unlike x v , which is defined to be component-wise multiplication, i.e.,
x v := ( x v k ) k = 1 n .
Thus, you can define the addition to be whatever you like to make life easier and notation simpler.
In many computer implementations, e.g. Mathematica or Python's numpy, you will find the notation
x + v := x 1 + v = ( x + v k ) k = 1 n ,
which sometimes serves as a useful notational shorthand.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?