Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Shortcut for magnitude of a Vector?

  • To: mathgroup at
  • Subject: [mg26744] Re: Shortcut for magnitude of a Vector?
  • From: adam_smith at
  • Date: Fri, 19 Jan 2001 02:14:19 -0500 (EST)
  • References: <9462eq$>
  • Sender: owner-wri-mathgroup at

Using the dot prodcut is probably the simplest way.  Try the following

vec = {vx, vy, vz}
numvec = {3, 4, 5}

{vx, vy, vz}

{3, 4, 5}


       2     2     2
Sqrt[vx  + vy  + vz ]

5 Sqrt[2]

Adam Smith
In article <9462eq$gck at>,
  " mrtommorris" <mor3752 at> wrote:
> Does anyone know if there is a shortcut to find the magnitude of a
Vector in
> Mathematica?  I've tried a few things but it just spits my vector
back out.
> Thanks for your help.  Tom Morris

Sent via

  • Prev by Date: algorithm for picking sum of list items
  • Next by Date: complicated recursion relations
  • Previous by thread: RE: Shortcut for magnitude of a Vector?
  • Next by thread: The value of a partial derivative