Rank: Newbie
Groups: Registered
Joined: 27/09/2020(UTC) Posts: 2
|
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. Edited by user 27 September 2020 18:41:05(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 27/09/2020(UTC) Posts: 2
|
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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
For only numerical procedures it seems that you can redefine abs(x) in this way: 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 user thanked Razonar for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: ggmaynard 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.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: ggmaynard makes the vector magnitude look like |x| ArcLength.sm (50kb) downloaded 81 time(s).
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.