Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 429 Was thanked: 42 time(s) in 39 post(s)
|
We need the i variable as variable but not as sqrt(-1)
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 11/01/2018(UTC) Posts: 150 Location: Wisconsin Was thanked: 71 time(s) in 45 post(s)
|
Greetings, Originally Posted by: OchkovVF We need the i variable as variable but not as sqrt(-1) There are other ASCII that can be used to avoid the imaginary number 'i'; For example, you can use the character below (will become Italic): You also have the ability to use the 'i' variable with a subscript character (or a space) that will be treated as a different variable then 'i': May this be of Good Help; ⚜ Kenny Lemens, P.E. ᵂᴵ |
|
1 user thanked Kenny Lemens for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 429 Was thanked: 42 time(s) in 39 post(s)
|
Originally Posted by: Kenny Lemens Greetings, You also have the ability to use the 'i' variable with a subscript character (or a space) that will be treated as a different variable then 'i': May this be of Good Help; ⚜ Kenny Lemens, P.E. ᵂᴵ
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,037 Was thanked: 1169 time(s) in 748 post(s)
|
You can guess the drop from the vertical position of the scoping line of the cursor. You also can add a visual dot by typing i. Ctrl-K . This prevents the dot being converted to a comma . Yet, I am not a fan of any tricks which aren't obvious to the reader. But that is a matter of taste. |
|
1 user thanked mkraska for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Your Tij make Trc ['r' row ... 'c' col]
|
1 user thanked Jean Giraud for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
That's what I meant. If the function generates complex 'i' could not be used as index.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Originally Posted by: OchkovVF We need the i variable as variable but not as sqrt(-1) Imaginary 'i' is pretty Universal, as such in Smath. No need to freak as stupid as Mathematica 'ii' [i,j] as compatible indices. [r,c] ... [m,n] as otherwise needed.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 06/04/2023(UTC) Posts: 429 Was thanked: 42 time(s) in 39 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: OchkovVF We need the i variable as variable but not as sqrt(-1) Imaginary 'i' is pretty Universal, as such in Smath. No need to freak as stupid as Mathematica 'ii' [i,j] as compatible indices. [r,c] ... [m,n] as otherwise needed. Must be so
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,037 Was thanked: 1169 time(s) in 748 post(s)
|
A consistent way to define mathematical (and perhaps immutable) constants would be to mark them as units. In the case of e this would collide with the elementary charge but for i and pi this might work. Yet this would require changes in the core of SMath, but part of the expected functionality could be provided by custom units. There are some glitches in the dynamic assistant though: - Original definition of i is displayed even though it is not available any more. This can be potentially dangerous - Re-defined variable i is shown in the preview as we would like to see it in the sheet, yet in the sheet it is not italic. imag.sm (28kb) downloaded 4 time(s).Edited by user 02 June 2023 18:15:57(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
Though, I don't vote for redefining 'i' in Smath, how would it affect dependent plugins ? Polyroots, Matlab ...]
|
|
|
|
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.