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 omorr  
#1 Posted : 02 August 2013 14:30:28(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello,

The very firs moment when the point was introduced as a literal index *using dot, point*, the same time it was clear that there would be situations like these. I had many times similar situations in Mathcad as well. You see the same thing but you will get the different result. The unvisible point might get some confusion. Now, the only way is to click into the region and pay attention to the editing lines, like you presented in the pictures (the last regions) or to see the green, blue background regions, they are different in size vertically
As you could see, there is actually a point present - not visible though.

A=700@'mm^2
A.=900@'mm^2

Actually, I do not have any idea what could be done about it.

Regards,
Radovan

Edited by user 02 August 2013 14:31:59(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 02/08/2013(UTC)

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

Offline Davide Carpi  
#2 Posted : 02 August 2013 14:52:59(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1340 time(s) in 879 post(s)
Originally Posted by: omorr Go to Quoted Post
Actually, I do not have any idea what could be done about it

I think that would be enough throwing an error if the variable name ends with the subscript character (in the end I can't imagine a real situation in which someone need a variable A.)

Edited by user 02 August 2013 14:54:54(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
thanks 1 user thanked Davide Carpi for this useful post.
on 02/08/2013(UTC)
Offline Davide Carpi  
#3 Posted : 02 August 2013 15:41:54(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1340 time(s) in 879 post(s)
Originally Posted by: ioan92 Go to Quoted Post
The situation could be identifiable if a marker is introduced as that for matrix and vectors indexes (?)


Maybe, but only if the user may easily distinguish between subscripts and indices (f.e. using italics for subscripts or using colors - and probably the placeholder too should be colored differently)

Edited by user 02 August 2013 15:49:31(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
thanks 1 user thanked Davide Carpi for this useful post.
on 02/08/2013(UTC)
Offline Davide Carpi  
#4 Posted : 02 August 2013 15:50:33(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1340 time(s) in 879 post(s)
Originally Posted by: ioan92 Go to Quoted Post
... or an empty circle, for instance.


that's a good idea OK
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 02/08/2013(UTC)
Offline kilele  
#5 Posted : 02 August 2013 16:12:48(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
This is a problem, until some of your suggestions can be implemented, I'd suggest not to use subscripts (A0 is fine to me in this case and doesn't lead to such error) or check the xml structure by means of your eyesight Good .sm is an xml file so one could parse it with some javascript or just try this by hand :
- drag the sm and drop it onto Opera (this browser highlights any search term found on a page in yellow)
- search the string <e type="operand">
- Take a peek in search of these bugged variables followed by a single dot.

Edited by user 02 August 2013 16:14:36(UTC)  | Reason: Not specified

thanks 1 user thanked kilele for this useful post.
on 02/08/2013(UTC)
Offline kilele  
#6 Posted : 02 August 2013 17:15:21(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
Yo may want to try this javascript, it is just an html renamed to hta, after pressing the button, search a dot with ctrl+f
File Attachment(s):
readnode.zip (4kb) downloaded 16 time(s).
thanks 1 user thanked kilele for this useful post.
on 02/08/2013(UTC)
Offline mkraska  
#7 Posted : 03 August 2013 11:53:47(UTC)
mkraska


Rank: Advanced Member

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

Was thanked: 1128 time(s) in 724 post(s)
I think that a minimalistic yet unambiguous solution could be just to keep the dot (or comma, as it appears under certain regional settings) visible unless there is actual text in the subscript. The advantages would be:
- the confusion by different names with same appearance is avoided
- no additional markup or placeholder needs to be invented
- no annoying error messages if you just delete the subscript in order to change it to something else.

One could go as far as regarding the disappearance of a single dot without subsequent subscript text a GUI bug.

I agree that text subscripts are an important asset of SMath, thus to discourage their use would be in line with discouraging symbolic evaluation (which we unfortunately have to).

Edited by user 03 August 2013 11:58:43(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 03/08/2013(UTC),  on 03/08/2013(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.