Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline mkraska  
#1 Posted : 27 February 2023 17:47:23(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
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 (18kb) downloaded 9 time(s).
2023-02-27 15_31_23-SMath Solver - [Vektoriteration AEWP.sm].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 28/02/2023(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 27 February 2023 19:47:27(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Confirmed: works fine SS 6179
Offline overlord  
#3 Posted : 27 February 2023 20:10:43(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Is this the correct result?

2023-02-27_20-09.png
Offline mkraska  
#4 Posted : 27 February 2023 21:41:02(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
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://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#5 Posted : 27 February 2023 22:03:35(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: overlord Go to Quoted Post
Is this the correct result ?

... from your original document YES

Offline overlord  
#6 Posted : 27 February 2023 22:19:04(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 509 time(s) in 339 post(s)
Originally Posted by: mkraska Go to Quoted Post
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.