Difference between two vectors | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок

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
1 ответ
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