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 : 21 February 2018 17:41:28(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)
BugComplex.PNG

2D Parametric Plot [Descartes Loop].sm (38kb) downloaded 24 time(s). ... SS 6179

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

Offline Davide Carpi  
#2 Posted : 22 February 2018 12:12:20(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
Thank you Jean, confirmed. In your example the iterator variable i replaces in the results the imaginary unit.
Have to investigate a little more because as for now I can't replicate it in a simpler case.

Edited by user 22 February 2018 13:55:49(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 mkraska  
#3 Posted : 22 February 2018 14:06:32(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)
I think that the missing protection of e, i and pi against re-definition just causes confusion without having any benefit.

However I could not find a feature request for changing this, thus I submitted one.

See SS 3507.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#4 Posted : 22 February 2018 18:50:19(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: Davide Carpi Go to Quoted Post
Thank you Jean, confirmed. In your example the iterator variable i replaces in the results the imaginary unit.
Have to investigate a little more because as for now I can't replicate it in a simpler case

Trust me Davide, on that one, I had to shoveled the clouds for quite a while !
"I can't replicate it in a simpler case"
It does not appear for a single case, it reveals for next and successive use.
Explained from observation in the attached.
All my other use in InverseLaplace are single cases and compatible.

Cheers Davide ... test your sandbox ... Jean

2D Parametric Plot [Descartes Loop].sm (44kb) downloaded 14 time(s). ... SS 6179


Offline Davide Carpi  
#5 Posted : 22 February 2018 22:56:08(UTC)
Davide Carpi


Rank: Advanced Member

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

Was thanked: 1329 time(s) in 875 post(s)
Ok, simplified enough to have a clear test case Good

The behavior under loops is the same that you can experience on the canvas, when i is used as part of a function or of a dependant variable (a variable that contains undefined variables).

Therefore is not bug about loops, but the general behavior of the program (that might be discussed starting from the BTS filled by Martin in the post above)

imaginary.sm (24kb) downloaded 19 time(s).

Edited by user 23 February 2018 02:38:41(UTC)  | Reason: typo

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#6 Posted : 23 February 2018 08:33:50(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)
... this bug concerns SS 6179.
Easy to test SS newer than 6179 ... follows the last guidance.
==================================================
The worst cases are in [d2, d3, d4] above.
1. 'i' in d2 is OK ... "imaginary unit" is ignored.
2. set 'i' in [d3, d4] to destroy the project.
==================================================

If you destroy the project by setting 'i' in d3, d4
there is urgent need to repair. Make 'i' imaginary unit
bold, red ... whatever distinguishable. Providing not
so stupid than Maple 'I'.
Mathematica 4.0 'i' is such a glorious horror !

2D Parametric Plot [Descartes Loop].sm (55kb) downloaded 15 time(s).
Offline Razonar  
#7 Posted : 23 February 2018 11:02:36(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post


.... Make 'i' imaginary unit
bold, red ... whatever distinguishable. Providing not
so stupid than Maple 'I'.
Mathematica 4.0 'i' is such a glorious horror !



I agree with Jean, that the option to protect i and make it useless for programming could be an error. Guess that a good workaround is using units:

Clipboard05.jpg

Best regards.

Alvaro
Offline frapuano  
#8 Posted : 23 February 2018 15:11:15(UTC)
frapuano


Rank: Advanced Member

Groups: Registered
Joined: 01/08/2010(UTC)
Posts: 115
Man
Italy
Location: Rome

Was thanked: 13 time(s) in 13 post(s)
Not easy to understand what is happening in all these steps...and all these changes of font for the same name of ...what? ( constant,variable ...)

Franco
Offline mkraska  
#9 Posted : 23 February 2018 15:36:25(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)
Originally Posted by: Razonar Go to Quoted Post
Guess that a good workaround is using units:

Clipboard05.jpg



That is part of the feature request SS-3507

If you like it, you might vote for it.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Razonar  
#10 Posted : 23 February 2018 15:57:53(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: mkraska Go to Quoted Post

That is part of the feature request SS-3507

If you like it, you might vote for it.


Well, talking about features, I vote for having different styles for the same variable name, like in mathcad:

Clipboard06.jpg

Best regards.

Alvaro.

Offline Jean Giraud  
#11 Posted : 23 February 2018 17:33:00(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: mkraska Go to Quoted Post
That is part of the feature request SS-3507

If you like it, you might vote for it.


My vote [typical]

Vote.PNG

Offline mkraska  
#12 Posted : 23 February 2018 18:55:27(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)
I agree that protection of imaginary unit and euler number should not prevent the user from using e and i as names of variables.

There are two challenges:

1. Clear visual distinction between protected constants and variables of the same name. The basic approach is to just use italic and non-italic black font. I prefer this because this would not require changes for complex result formatting and would be consistent to the general format rules in SMath (built-ins upright, user-defined italic).

2. Unambiguous and simple way to input either constant or variable using the keyboard. If you enter i or e, then this refers to the constants, as long nothing has been defined by the user. Once custom e or i are defined, then the selection could be done using the dynamic assistant. Alternatively, you might generally input the constants i as CTRL-SHIFT-I and e as CTRL-SHIFT-E just like CTRL-SHIFT-P gives pi.

Protecting pi is less important but would not harm and would add to consistant formatting.

Not directly related but being mentioned above in the discussion:

Markup as vector e.g. by underlining or bold face would enable sort of type declaration. This could be used to identify the correct type of multiplication (commutative or non-commutative) in symbolic manipulations.

Here we would have to discuss, if the markup has to be removed if element indices are used (as in paper and pencil handcalc).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
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.