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 Jean Giraud  
#1 Posted : 07 March 2016 07:54:08(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)
The bug is between Max(M) same/NOT same as max(M)
.................. Min(M) same/NOT same as min(M)

at different high/low values in "M".
"ad absurdum proof" in the work sheet.

Jean

Bug Matrix.sm (28kb) downloaded 33 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 07/03/2016(UTC)

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

Offline Davide Carpi  
#2 Posted : 07 March 2016 15:17:02(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
Confirmed even in later versions, first function with built-in max() and min() applied to the Cscale is really slow.

Max() & Min() (CustomFunctions) reworked to use the numerical engine -> if used in the first function, it works fast as the robust scale.

New Max/Min solved also this issue; not sure if my previous code buggy or still matrix manipulation issues (output values of Max and Min on the canvas were ok, apparently not in the functions).

Edited by user 15 September 2016 17:37:06(UTC)  | Reason: marked as solved

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#3 Posted : 07 March 2016 21:24:22(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)
Thanks Davide for your attention.

I think the fish is in the mud, as long it does not breath: fine.
Smath 5346 Matrix is definitively and definitely "Buggy".
"Input string !WAS! not in correct format".
The attached proof is evident: the "Zoom replicate" works in
Mathcad 11 but not in Smath. It works fine for the chess board
but not for any other data matrix. It reminds me the TI-58 NoP
[No Operation]. The bug looks at the input string in the
"zoom replicate". It takes integer values, NOT decimal values.

Jean

Bug Matrix More.sm (62kb) downloaded 26 time(s).
Offline Davide Carpi  
#4 Posted : 08 March 2016 03:16:30(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,648
Man
Italy
Location: Italy

Was thanked: 1331 time(s) in 876 post(s)
Hello Jean, Good

The error message of SS 5346 is strange, however in 0.98 is "Requested matrix element doesn't exist"; following the latest message the error is that in the function Zoom(M, h, v) you are using local unknowns as target of the assignments inside the loops; since you are in a programming-function, and p,N,Z are not defined before the loops, if in the canvas exists a variable with the same name, this variable is used in the function and the values locally replaced (or added if the target element is outside the original sizes). In your case the issue is triggered by Z (defined in the canvas in "Zoom integer").
You can avoid the issue placing Z:0 above the loop (or Z:matrix(rows,cols) with rows and cols as non-negative integers)

2016-03-08 01_14_03-SMath Studio Desktop - [Bug%20Matrix%20More.sm_].png

2016-03-08 01_18_01-SMath Studio Desktop - [Bug%20Matrix%20More.sm_].png

Edited by user 08 March 2016 03:41:42(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#5 Posted : 08 March 2016 04:25:37(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)
Thanks Davide, most appreciated.

I will implement as per your advice. In the mean while
finishing diner, the brilliant idea: decapsulate all
an everything, works fine and zoomed the "Persian Carpet".

There are fractional zoom up [1.25, ...] that would work
in Smath. That will be a waste of technique vs more advanced
zoom smooth: Fourier Convolution, Fourier Padding.

Cheers, Jean

Image Zoom Replicate.sm (62kb) downloaded 27 time(s).

thanks 1 user thanked Jean Giraud for this useful post.
on 08/03/2016(UTC)
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.