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: [mg41597] Re: [mg41576] Distance between to points in r^3
  • From: Bobby Treat <drmajorbob+MathGroup3528 at mailblocks.com>
  • Date: Wed, 28 May 2003 04:57:29 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

norm = Sqrt[#.#] &;
distance = norm[#1 - #2] &;
pt1 = {a, b, c};
pt2 = {d, e, f};
distance[pt1, pt2]

Sqrt[(a - d)^2 + (b - e)^2 +
   (c - f)^2]

Bobby

-----Original Message-----
From: Ronny Mandal <ronnyma at math.uio.no>
To: mathgroup at smc.vnet.net
Subject: [mg41597] [mg41576] Distance between to points in r^3

 Hi.

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

 Thanks in advance.

  Ronny M


  • Prev by Date: Re: Distance between to points in r^3
  • Next by Date: Re: newbie question: generic derivatives
  • Previous by thread: Re: Distance between to points in r^3
  • Next by thread: Re: Distance between to points in r^3