MathGroup Archive 1999

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

Search the Archive

Re: Magnitude of Vector


Ed,

mag[x_?VectorQ] := Sqrt[x.x]

mag[{x, y, z}]

Sqrt[x^2 + y^2 + z^2]

Bob Hanlon

In a message dated 8/21/99 2:50:10 AM, emcbride at wybron.com writes:

>Was doing some stuff that required 3-D vectors.  Found Dot and Cross,
>but couldn't find a primitive operator for Magnitude.  Is there one?  If
>not, there definitely should be.  Ed McBride, P.E.
>


  • Prev by Date: FactorIntegerECM
  • Next by Date: Re: AxesLabel with greek letter
  • Previous by thread: Magnitude of Vector
  • Next by thread: Re: Magnitude of Vector