Question: How to check whether a vector is a multiple of another

Hi,

 

How would you go about checking whether a vector is a scalar multiple of another in the set? eg. my set is {[-2, 1, 1, -2, 1, 1], [-2, 1, 1, 2, -1, -1], [0, -1, 1, 0, 1, -1], [0, 1, -1, 0, -1, 1]}. I need to get rid of one of the last two, since it is (-1) times the other.

 

What would be the most straightforward way of doing this? I've tried doing something along the lines of V1=c.V2 for each component and then checking you get the same c for all, but that seems pretty messy.

 

Thanks.

Please Wait...