Difference between two vectors | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Difference between two vectors

How does the difference between two vectors and then place the result in a third carrier to be printed? Please help me

15th Nov 2016, 6:31 PM
alessio
1 Answer
0
At first you will need to check if they are linear independent because otherwise your code will return true even if they are describing the same vector Example V1=(1 4) V2=(2 8) Because here is no LaTeX I am writing them transposed. We can easily see that both vectors are linear dependant from the other. There are definitely functions to check this. If your dependency check returns false aka not linear dependant than can you say that they are not equal.
18th Nov 2016, 10:13 AM
Arsal Ali
Arsal Ali - avatar