1页(9条)
[SS-2340] user-defined order of computation ignored - matrices & vectors - 消息
Here is in attachment files illustrating wrong computation of local variable.
Using version 0.98 (build: 5935)
bug.sm (7.04 KiB)已下载 1374 次。

Using version 0.98 (build: 5935)
bug.sm (7.04 KiB)已下载 1374 次。


Seems that it incorrectly optimizes the order of evaluation (despite brackets explicitly set).
This looks like a bug.
Aside, please note that this may be simplified like at the top of the screenshot.
Submitted SS-2340
A workaround:

And BTW, you may rewrite your Module() like this:

because scalar multiplication of vectors is sum of products of their corresponding elements multiplied by cos of angle between them - and for identical vectors, cosine is 1.
С уважением,
Михаил Каганский
1位用户喜欢此帖子
Davide Carpi 2016/5/9 11:48:00
Thanks for quick answer with tips, I'll use it
WroteJean,
Are you using matrices curvedlines?
I get squares.
Basile,
I'm at Smath 5346. The matrix square bracket came recently
with some of the latest nightly build. Smath 5346 does not
have the matrix square bracket, which I love very much.
The 2nd level bracket in formula is still missing [I think ?].
Cheers, Jean
Jean,
Any idea why does not evaluate but gives error message?
Basile
Any idea why does not evaluate but gives error message?
Basile
1页(9条)
- 有新帖
- 无新帖


![2016-05-12 09_33_39-SMath Studio Desktop - [bug.sm_].png](/zh-Hans-CN/files/Download/Ruqzk6/2016-05-12-09_33_39-SMath-Studio-Desktop---[bug.sm_].png)
![2016-05-12 09_28_29-SMath Studio Desktop - [bug.sm_].png](/zh-Hans-CN/files/Download/W32HZK/2016-05-12-09_28_29-SMath-Studio-Desktop---[bug.sm_].png)