Truble with Clear()-procedure

Truble with Clear()-procedure - 消息

#1 已发布: 2020/3/23 14:15:47
manolo

manolo

8个赞,共9个帖子。

组: User

Hello,

The following input;
T:=200 K
Clear(T)=1
T=200 K

does not work as expected. Why?
#2 已发布: 2020/3/23 15:51:32
Jean Giraud

Jean Giraud

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

组: User

Pretty mystic ?

Clear.PNG
#3 已发布: 2020/3/23 16:15:15
manolo

manolo

8个赞,共9个帖子。

组: User

Thank you, but:
T.1:=200 K
Clear(T.1)=1
T.1=200 K
will not work...
#4 已发布: 2020/3/23 16:53:02
Jean Giraud

Jean Giraud

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

组: User

Wrote

Thank you, but:
T.1:=200 K
Clear(T.1)=1
T.1=200 K
will not work...


Just reproduce the image posted.
#5 已发布: 2020/3/23 17:00:11
Arie

Arie

94个赞,共285个帖子。

组: User

Can you post your .sm file?
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#6 已发布: 2020/3/23 17:49:58
manolo

manolo

8个赞,共9个帖子。

组: User

Blatt1.sm (2.63 KiB)已下载 1176 次。
#7 已发布: 2020/3/23 19:14:44
Arie

Arie

94个赞,共285个帖子。

组: User

You've not cleared the right variable.
You entered "Clear(T1)" instead of "Clear(T.1)"
Annotation 2020-03-23 181257.png

Blatt1.sm (3.01 KiB)已下载 1192 次。
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#8 已发布: 2020/3/23 20:42:37
Jean Giraud

Jean Giraud

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

组: User

Wrote

Can you post your .sm file?


YES: needed. 'T' may represent a previous matrix,
or some otherwise argument ... ?
#9 已发布: 2020/3/24 08:41:52
Jean Giraud

Jean Giraud

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

组: User

In this demo: Sym(f(x,y),L,H,N)
is my universal image algo creator, based internally on 'U'
which 'U' is set to '0' from any other existing creation,
whether vector/matrix.

Clear-in-Algo.PNG
  • 有新帖
  • 无新帖