Re: Shortcut for magnitude of a Vector?

*To*: mathgroup at smc.vnet.net*Subject*: [mg26733] Re: [mg26710] Shortcut for magnitude of a Vector?*From*: Ken Levasseur <Kenneth_Levasseur at uml.edu>*Date*: Fri, 19 Jan 2001 02:14:10 -0500 (EST)*References*: <200101180557.AAA16616@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Tom: I usually use a function like this: In[14]:= mag = Sqrt[Plus @@ (#^2)] & Out[14]:= Sqrt[Plus @@ (#1^2)] & In[15]:= mag[{a, b, c}] Out[15]:= Sqrt[a^2 + b^2 + c^2] In[16]:= mag[{1, 5, -2}] Out[16]:= Sqrt[30] Ken Levasseur UMass Lowell mrtommorris 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

**References**:**Shortcut for magnitude of a Vector?***From:*" mrtommorris" <mor3752@alltel.net>