MathGroup Archive 2006

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

Search the Archive

Norm

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67973] Norm
  • From: Clausenator at gmail.com
  • Date: Wed, 19 Jul 2006 05:21:13 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
I want to calculate a distance matrix, similar to (as poorly explained
at) http://en.wikipedia.org/wiki/Distance_matrix

I found out about the Function "Norm" in mathematica 5.

Here is a little example. I want to calculate the distance between
vectors {0,1} and {5,1}. The distance should be 5

Now,

Norm[{{0., 1.}, {5., 1.}}, 2]
results 5.10293

Norm[{{0., 1.} - {5., 1.}}, 2]
results 5.0

According to the documentation I have (Mathematica Help Browser, search
for "Norm" under "Built-in Functions") the version with the comma is
documented. I like the solution with the dash better.
Which one is it? In other words, is there some Wolfram description or
can you explain the difference?

Thanks for your help,
Claus


  • Follow-Ups:
    • Re: Norm
      • From: Murray Eisenberg <murray@math.umass.edu>
    • Re: Norm
      • From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
    • Re: Norm
      • From: "Carl K. Woll" <carlw@wolfram.com>
  • Prev by Date: Re: How do declare real functions? (was: NDSolve Problems)
  • Next by Date: WebServices InstallService bug in 5.2 on Max OS X 10.4.7
  • Previous by thread: Re: Extracting a Function's Domain and Image
  • Next by thread: Re: Norm