length of a vector



--- Barton Willis  wrote:

> 
> Oh, sorry ... maybe you were looking for something
> like:
> 
> (%i1) magnitude(x) := sqrt(x.x);
> (%o1) magnitude(x):=sqrt(x.x)
> (%i2) magnitude([1,2,3]);
> (%o2) sqrt(14)
> 
> Barton
> 
> 

sorry, I should have given an example.
say a point in 3-d (a,b,c) and another point
(a1,b1,c1) what is the function to give distance
between them?
do you use picewise subtraction of V1 from V and then
use magnitude on the results?

thanks



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com