MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Distance between to points in r^3

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41588] Re: Distance between to points in r^3
  • From: Bill Rowe <listuser at earthlink.net>
  • Date: Wed, 28 May 2003 04:57:22 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 5/27/03 at 1:47 AM, ronnyma at math.uio.no (Ronny Mandal) wrote:

>Assume that I've got to vectors  (3,4,5) and (6,7,8).How do I
>calculate the distance between them?

Assuming you want the Euclidean distance then

Sqrt@Tr[#^2&/@(a-b)] where a and b are the vectors will do the trick


  • Prev by Date: A bug?......In[1]:= Sum[Cos[x], {x, 0, Infinity, Pi}]......Out[1]= 1/2
  • Next by Date: Matrix inverse not evaluating
  • Previous by thread: RE: Distance between to points in r^3
  • Next by thread: Re: Distance between to points in r^3