Regression in 8348

Regression in 8348 - 消息

#1 已发布: 2023/2/27 11:47:23
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

The attached sheet used to work and now doesn't.
The regression happened somewhere between build 7803 (works) and 7822 (doesn't work).
Also strange: the german error message even though the UI language was set to english.

Vektoriteration AEWP.sm (17.21 KiB)已下载 1667 次。
2023-02-27 15_31_23-SMath Solver - [Vektoriteration AEWP.sm].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
sergio 2023/2/28 06:12:00
#2 已发布: 2023/2/27 13:47:27
Jean Giraud

Jean Giraud

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

组: User

Confirmed: works fine SS 6179
#3 已发布: 2023/2/27 14:10:43
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Is this the correct result?

2023-02-27_20-09.png
#4 已发布: 2023/2/27 15:41:02
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

Yes, it is correct. Yet I consider the need to place eval() being a workaround for a bug. A similar workaround is to introduce an intermediate variable.

It seems that the error is related with broken logics of matrix operations. If I remove the factor in front of the matrix, then the function call works. Seems that at some point the evaluation logic thinks that the expression is not a matrix and complains in a not very helpful way.

Actually I found the culprit, it's the Ones() function. Davide, if you could ask that function to evaluate it's argument before refusing it, that would be fine.

2023-02-27 19_39_15-SMath Solver - [Vektoriteration AEWP.sm_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#5 已发布: 2023/2/27 16:03:35
Jean Giraud

Jean Giraud

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

组: User

Wrote

Is this the correct result ?


... from your original document YES

#6 已发布: 2023/2/27 16:19:04
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

1) Yet I consider the need to place eval() being a workaround for a bug.
2) Actually I found the culprit, it's the Ones() function.


1) I agree, putting line() or eval() sometimes is cumbersome. And unnecessary.
If necessity of them would be removed in all possibilities, it would be awesome.

2) You are 100% correct. I wonder how many of these little bugs out there.
This little change of code worked just fine.
2023-02-27_22-14.png

Regards
  • 有新帖
  • 无新帖