i not only sqrt(-1)

i not only sqrt(-1) - 消息

#1 已发布: 2023/5/28 13:35:26
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

We need the i variable as variable but not as sqrt(-1)
i.png
#2 已发布: 2023/5/30 10:42:37
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

85个赞,共181个帖子。

组: User

Greetings,

Wrote

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

May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
1位用户喜欢此帖子
Valery Ochkov 2023/5/30 12:25:00
#3 已发布: 2023/5/31 09:14:48
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Wrote

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':

i.:22

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



i-1.png

#4 已发布: 2023/5/31 10:30:43
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

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.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Valery Ochkov 2023/5/31 11:44:00
#5 已发布: 2023/5/31 14:24:36
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Your Tij make Trc ['r' row ... 'c' col]
1位用户喜欢此帖子
Valery Ochkov 2023/5/31 15:02:00
#6 已发布: 2023/6/1 12:59:37
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

That's what I meant. If the function generates complex
'i' could not be used as index.

Spot.PNG
#7 已发布: 2023/6/2 08:17:15
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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
#8 已发布: 2023/6/2 08:56:11
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Wrote

Wrote

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
#9 已发布: 2023/6/2 12:14:04
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

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 (27.83 KiB)已下载 1702 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#10 已发布: 2023/6/2 14:31:58
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Though, I don't vote for redefining 'i' in Smath,
how would it affect dependent plugins ? Polyroots, Matlab ...]
  • 有新帖
  • 无新帖