Group Abstract Group Abstract

Message Boards Message Boards

0
|
17 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Norm[] of real vector

Posted 2 hours ago

Is there a trick to using Norm[] on real vectors that avoids results like Abs[x]^2 and that is more straightforward than Sqrt[Total[vector^2]]?

POSTED BY: Jay Gourley
2 Replies

No, not really. ComplexExpand@Norm[{x, y}] does not seem more straightforward.

I often use norm = Sqrt[# . #]&, fwiw.

POSTED BY: Michael Rogers
Posted 1 hour ago

Thanks, Michael Rogers. Just reading your post triggered a solution. The function "norm[list]" would be perfectly clear to anyone who saw it and could do exactly what I want. May failure to see that is typical. I can spend more time pouring over Wolfram documentation than would take to write a function and give a name that means exactly what I want it to say.

POSTED BY: Jay Gourley
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard