How to enforcing simbolic evaluation?

How to enforcing simbolic evaluation? - 消息

#1 已发布: 2021/2/20 03:17:40
netsonicyxf

netsonicyxf

2个赞,共79个帖子。

组: User

Even if the variable have been defined.

E.g. how to get x=(a+b)(a-b)even if a=1, b=2
未找到文件。未找到文件。
#2 已发布: 2021/2/20 09:39:43
Jean Giraud

Jean Giraud

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

组: User

Algebra.PNG
#3 已发布: 2021/2/20 10:20:42
netsonicyxf

netsonicyxf

2个赞,共79个帖子。

组: User

Thanks, but I want to know how to get U=(a+b )*(a-b ), even if a=1, b=2 is on the top
#4 已发布: 2021/2/20 12:01:23
Jean Giraud

Jean Giraud

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

组: User

Wrote

Thanks, but I want to know how to get U=(a b )*(a-b ), even if a=1, b=2 is on the top


I simply don't understand your request.
Read Martin handbook, to learn using Smath.

Algebra-Algo.PNG
#5 已发布: 2021/2/20 13:02:11
Martin_B

Martin_B

22个赞,共84个帖子。

组: User

I think the only way is to delete the defintions by using Clear(a;b)= .
#6 已发布: 2021/2/20 13:15:24
Jean Giraud

Jean Giraud

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

组: User

Wrote

I think the only way is to delete the definitions by using Clear(a;= .


No need, algo is self clearing.
#7 已发布: 2021/2/20 17:18:06
Jean Giraud

Jean Giraud

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

组: User

Wrote

No need, algo is self clearing.



Algo_Algebra.PNG

#8 已发布: 2021/2/21 01:25:56
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

Even if the variable have been defined.

E.g. how to get x=(a+b)(a-b)even if a=1, b=2



Hi. As MarB says, only with Clear(a , b ) in SMath. However, it is true that in Mathcad you can hide the numeric values for a symbolic evaluation:

Clipboard01.jpg

Best regards.
Alvaro.
#9 已发布: 2021/2/21 09:24:07
netsonicyxf

netsonicyxf

2个赞,共79个帖子。

组: User

Wrote

I think the only way is to delete the defintions by using Clear(a;b)= .



1.png

Wrote


Hi. As MarB says, only with Clear(a , b ) in SMath. However, it is true that in Mathcad you can hide the numeric values for a symbolic evaluation:



really wish Smath can perform like MathCAD
#10 已发布: 2021/2/21 11:00:13
Jean Giraud

Jean Giraud

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

组: User

Wrote

really wish Smath can perform like MathCAD



Clear(a,b).PNG

#11 已发布: 2021/2/21 11:10:37
netsonicyxf

netsonicyxf

2个赞,共79个帖子。

组: User

Thanks Jean.

BTW, MathCAD doesn't need to do clearance.
#12 已发布: 2021/2/21 12:00:32
Jean Giraud

Jean Giraud

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

组: User

Wrote

BTW, MathCAD doesn't need to do clearance.


True for that little example. More advanced stuff needs be cleared as well.
The symbolic arrow was demanded but not implemented.
#13 已发布: 2021/2/21 13:27:04
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

The only way is to define the variables after the expression, then you can show the expression using Clear. The other way doesn't works because when values are set before the expression, the values are stored in memory, not the variable names.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#14 已发布: 2021/2/21 13:28:15
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Wrote

Thanks Jean.

BTW, MathCAD doesn't need to do clearance.



Hi. It needs. That is the mean for a:=a and b:=b, which clear a and b only for symbolics, but not for numerics. If you want to show the symbilic value stored in x cleaning a and b after you define x, you can use line() in the definitions:

Clipboard01.jpg

Also notice that you need to eval Clear(a, b ) = 1, if not SMath not recognize that as an instruction.

Best regards.
Alvaro.
1位用户喜欢此帖子
Davide Carpi 2021/2/22 05:37:00
  • 有新帖
  • 无新帖