Another service from Omega

The Segment Defined by Two Vectors


*****


Problem1:


Let

> u := [2,1]: v:= [-3,4]:

Sketch the vector,
c u + (1-c) v
for the cases, c=0,c=1/4,c=3/4,c=1.



Solution1:


We can write a function for finding the vector for the different values of c.

> mix := c -> evalm(c*u+(1-c)*v);

                      mix := c -> evalm(c u + (1 - c) v)

The four vectors are,

> m0:=mix(0); m1:= mix(1/4); m2:= mix(3/4); m3 := mix(1);

                                 m0 := [-3, 4]

                              m1 := [-7/4, 13/4]

                               m2 := [3/4, 7/4]

                                 m3 := [2, 1]

These vectors are along the segment from v to u. m1 is 1/4 of the way along and m2 is 3/4 of the way along u-v (look at the picture).
picture a picture here


This shows that if the initial point fo cu+(1-c)v for 0


Link to the commands in this file
Carlos Rodriguez <carlos@math.albany.edu>
Last modified: Thu Sep 14 14:36:04 EDT 2000