1 страниц (9 вхождений)
[SS-2340] user-defined order of computation ignored - matrices & vectors - Сообщения
#1 Опубликовано: 09.05.2016 10:59:24
Here is in attachment files illustrating wrong computation of local variable.
Using version 0.98 (build: 5935)
bug.sm (7 КиБ) скачан 41 раз(а).

Using version 0.98 (build: 5935)
bug.sm (7 КиБ) скачан 41 раз(а).
#2 Опубликовано: 09.05.2016 11:12:24
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 09.05.2016 11:48:00
#3 Опубликовано: 09.05.2016 13:20:20
Thanks for quick answer with tips, I'll use it
#4 Опубликовано: 09.05.2016 22:38:11
#5 Опубликовано: 11.05.2016 00:32:06
#6 Опубликовано: 11.05.2016 11:54:12
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
#7 Опубликовано: 11.05.2016 23:55:16
Jean,
Any idea why does not evaluate but gives error message?
Basile
Any idea why does not evaluate but gives error message?
Basile
#8 Опубликовано: 12.05.2016 00:08:22
#9 Опубликовано: 12.05.2016 04:34:02
1 страниц (9 вхождений)
-
Новые сообщения
-
Нет новых сообщений