Magnitude of a vector?

Magnitude of a vector? - Where's the operator? - 消息

#1 已发布: 2020/9/27 12:35:26
ggmaynard

ggmaynard

0个赞,共2个帖子。

组: 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 已发布: 2020/9/27 13:13:32
ggmaynard

ggmaynard

0个赞,共2个帖子。

组: 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 已发布: 2020/9/27 14:10:21
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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位用户喜欢此帖子
sergio 2020/9/27 14:30:00
#4 已发布: 2020/9/27 21:28:38
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2020/9/28 09:19:38
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

makes the vector magnitude look like |x|



ArcLength.sm (49.46 KiB)已下载 1364 次。

  • 有新帖
  • 无新帖