Another service from Omega

The vector from P to Q


*****

Problem:

Express the vector PQ in standard form and find its length where:

> P := [5,7]: Q := [6,8]:


Solution:


The coordinates of the vector PQ are given by the coordinates of Q-P. Hence,

> PQ := evalm(Q-P);

                                 PQ := [1, 1]

Its lenth is given by the square root of the sum of the squares of the entries.

> len := v -> sqrt(dotprod(v,v)):
> lenth_of_PQ := len(PQ);

                                              1/2
                              lenth_of_PQ := 2

Link to the commands in this file
Carlos Rodriguez <carlos@math.albany.edu>
Last modified: Mon Sep 18 12:37:49 EDT 2000