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 : 08 October 2022 14:39:35(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1120 time(s) in 718 post(s)
A student sent me a file with obviously wrong unit handling by SMath Studio. A variable was not stored in the units as specified. I don't know how he could make this (was made on a french computer environment (keyboard, OS language)

mwe.sm (4kb) downloaded 6 time(s).
Display in 8253
mwe8253.png
Display in 6884 (the oldest on my computer)
mwe6884.png

The upper definition is from the worksheet of the student, the lower was typed by me.
When copying the cells to an editor, the hex representations look the same.

What could have gone wrong?

Meanwhile I found the culprit. The student (by chance or deliberately) has set the option "Ignore units" which I never use and therefore did not think of at first glance.

Yet in between version 6884 and 8253 a bug must have been introduced. It makes a definition from a cell with activated "ignore units" neither being stored with the specified unit (as if the option wasn't set), nor without unit (as would be expected). Instead, SMath Studio stores part of the definition (or something random, who knows), so creating perfect confusion and making the teacher look stupid by recommending such programs.

I consider this being a bug and I also would add to the survival rules: Never use "Ignore units" feature.

This is mainly due to the fact that there is no visible clue that this feature is activated in a definition. I'd recommend something like displaying ignored units in a definition in gray.

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 03/12/2022(UTC)

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

Users browsing this topic
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.