Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline ggmaynard  
#1 Posted : 27 September 2020 18:35:26(UTC)
ggmaynard

Rank: Newbie

Groups: Registered
Joined: 27/09/2020(UTC)
Posts: 2
United States

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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline ggmaynard  
#2 Posted : 27 September 2020 19:13:32(UTC)
ggmaynard

Rank: Newbie

Groups: Registered
Joined: 27/09/2020(UTC)
Posts: 2
United States

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.
Offline Razonar  
#3 Posted : 27 September 2020 20:10:21(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
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.
thanks 1 user thanked Razonar for this useful post.
on 27/09/2020(UTC)
Offline Jean Giraud  
#4 Posted : 28 September 2020 03:28:38(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ggmaynard Go to Quoted Post
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.

Offline Jean Giraud  
#5 Posted : 28 September 2020 15:19:38(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ggmaynard Go to Quoted Post
makes the vector magnitude look like |x|


ArcLength.sm (50kb) downloaded 79 time(s).

Users browsing this topic
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.