Regression in 8348

Regression in 8348 - Сообщения

#1 Опубликовано: 27.02.2023 11:47:23
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 26 раз(а).
2023-02-27 15_31_23-SMath Solver - [Vektoriteration AEWP.sm].png
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
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Confirmed: works fine SS 6179
#3 Опубликовано: 27.02.2023 14:10:43
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: Moderator

Is this the correct result?

2023-02-27_20-09.png
#4 Опубликовано: 27.02.2023 15:41:02
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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
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
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Is this the correct result ?


... from your original document YES

#6 Опубликовано: 27.02.2023 16:19:04
overlord

overlord

547 сообщений из 1330 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений