Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline OchkovVF  
#1 Posted : 28 May 2023 19:35:26(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 429
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
We need the i variable as variable but not as sqrt(-1)
i.png

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

Offline Kenny Lemens  
#2 Posted : 30 May 2023 16:42:37(UTC)
Kenny Lemens


Rank: Advanced Member

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 150
Man
United States
Location: Wisconsin

Was thanked: 71 time(s) in 45 post(s)
Greetings,

Originally Posted by: OchkovVF Go to Quoted Post
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):
Code:
і:22


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':
Code:
i.:22


May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo Banzai

Hotkeys: https://en.smath.com/for...rce.ashx?a=45771&b=2
thanks 1 user thanked Kenny Lemens for this useful post.
on 30/05/2023(UTC)
Offline OchkovVF  
#3 Posted : 31 May 2023 15:14:48(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 429
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
Originally Posted by: Kenny Lemens Go to Quoted Post
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':
Code:
i.:22


May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ


i-1.png

Offline mkraska  
#4 Posted : 31 May 2023 16:30:43(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,037
Germany

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.
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 31/05/2023(UTC)
Offline Jean Giraud  
#5 Posted : 31 May 2023 20:24:36(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 983 time(s) in 811 post(s)
Your Tij make Trc ['r' row ... 'c' col]
thanks 1 user thanked Jean Giraud for this useful post.
on 31/05/2023(UTC)
Offline Jean Giraud  
#6 Posted : 01 June 2023 18:59:37(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

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.

Spot.PNG
Offline Jean Giraud  
#7 Posted : 02 June 2023 14:17:15(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 983 time(s) in 811 post(s)
Originally Posted by: OchkovVF Go to Quoted Post
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.

Complex.PNG
Offline OchkovVF  
#8 Posted : 02 June 2023 14:56:11(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 429
Man
Russian Federation

Was thanked: 42 time(s) in 39 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: OchkovVF Go to Quoted Post
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.

Complex.PNG


Must be so
iii.png
Offline mkraska  
#9 Posted : 02 June 2023 18:14:04(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,037
Germany

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.PNG
imag.sm (28kb) downloaded 4 time(s).

Edited by user 02 June 2023 18:15:57(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Jean Giraud  
#10 Posted : 02 June 2023 20:31:58(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

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 ...]
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.