1 страниц (6 вхождений)
Regression in 8348 - Сообщения
#1 Опубликовано: 27.02.2023 11:47:23
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 КиБ) скачан 64 раз(а).
![2023-02-27 15_31_23-SMath Solver - [Vektoriteration AEWP.sm].png](/ru-RU/file/QRWk6g/2023-02-27-15_31_23-SMath-Solver---_Vektoriteration-AEWP_sm__png)
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 КиБ) скачан 64 раз(а).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
sergio 28.02.2023 06:12:00
#2 Опубликовано: 27.02.2023 13:47:27
Confirmed: works fine SS 6179
#3 Опубликовано: 27.02.2023 14:10:43
#4 Опубликовано: 27.02.2023 15:41:02
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](/ru-RU/file/q5wLqv/2023-02-27-19_39_15-SMath-Solver---_Vektoriteration-AEWP_sm___png)
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.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Опубликовано: 27.02.2023 16:03:35
WroteIs this the correct result ?
... from your original document YES
#6 Опубликовано: 27.02.2023 16:19:04
Wrote1) 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.
Regards
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений