Magnitude of a vector?

Magnitude of a vector? - Where's the operator? - Messages

#1 Posted: 9/27/2020 12:35:26 PM
ggmaynard

ggmaynard

0 likes in 2 posts.

Group: User

I'm a long time Mathcad user (back to the DOS version) and I think SMath is great, better than what Mathcad has become. So I'm surprised to be so stumped by something so simple. How do I get the magnitude of a vector? In Mathcad I'd use the "|" keyboard shortcut, but in SMath that's a Boolean OR. In the tool palettes I see two operators that look like what I want: absolute value (works only on scalars) and determinant (works only on square matrices). I know this probably seems like a dumb question but I can't find reference to it anywhere.
#2 Posted: 9/27/2020 1:13:32 PM
ggmaynard

ggmaynard

0 likes in 2 posts.

Group: User

Just discovered the answer apparently is the "norme" function, kind of like in MATLAB. Mathcad has it too, but for square matrices only. I guess I was thinking more like an engineer than a mathematician. Would still be interested to know whether there's a way I'm missing that makes the vector magnitude look like |x| which is the usage I'm used to.
#3 Posted: 9/27/2020 2:10:21 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

For only numerical procedures it seems that you can redefine abs(x) in this way:

Clipboard01.jpg

Notice that this don't works for derivatives. It could be a good idea typesetting norme(x) as ||x|| (double bar).

Best regards.
Alvaro.
1 users liked this post
sergio 9/27/2020 2:30:00 PM
#4 Posted: 9/27/2020 9:28:38 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

How do I get the magnitude of a vector?


More generally, the length of a vector is its arc length.
Then from simple Wikipedia style or mathematically computable..
Always possible from discrete data + finite differences.

#5 Posted: 9/28/2020 9:19:38 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

makes the vector magnitude look like |x|



ArcLength.sm (49 KiB) downloaded 109 time(s).

  • New Posts New Posts
  • No New Posts No New Posts