Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 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 |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 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. |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Davide Carpi 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
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Ok, simplified enough to have a clear test case 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 |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 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).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: Jean Giraud
.... 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: Best regards. Alvaro
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 01/08/2010(UTC) Posts: 115 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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 Was thanked: 1124 time(s) in 721 post(s)
|
Originally Posted by: Razonar Guess that a good workaround is using units: That is part of the feature request SS-3507If you like it, you might vote for it. |
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: mkraska That is part of the feature request SS-3507If 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: Best regards. Alvaro.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: mkraska That is part of the feature request SS-3507If you like it, you might vote for it. My vote [typical]
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,986 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). |
|
|
|
|
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.