Vector decompositon

strubem shared this question 5 years ago

Is there a built in way to decompose a vector to find out "how many" of the unit vectors a and b I need to get p?


Comments (1)


    pa=Distance[Intersect[Line[Point[p, 0], a], Line[Point[p, 1], b]], Point[p, 0]] / Length[a]

for vector b

    pb=Distance[Intersect[Line[Point[p, 0], b], Line[Point[p, 1], a]], Point[p, 0]] / Length

Thanks a lot, Noel.

Btw, that would be one of my first feature requests: Syntax highlighting and having more than one line in the properties for a definition.

© 2021 International GeoGebra Institute