How to enforcing simbolic evaluation?

How to enforcing simbolic evaluation? - Messages

#1 Posted: 2/20/2021 3:17:40 AM
netsonicyxf

netsonicyxf

2 likes in 79 posts.

Group: User

Even if the variable have been defined.

E.g. how to get x=(a+b)(a-b)even if a=1, b=2
File not found.File not found.
#2 Posted: 2/20/2021 9:39:43 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Algebra.PNG
#3 Posted: 2/20/2021 10:20:42 AM
netsonicyxf

netsonicyxf

2 likes in 79 posts.

Group: 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 Posted: 2/20/2021 12:01:23 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 2/20/2021 1:02:11 PM
Martin_B

Martin_B

21 likes in 84 posts.

Group: User

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

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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


No need, algo is self clearing.
#7 Posted: 2/20/2021 5:18:06 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

No need, algo is self clearing.



Algo_Algebra.PNG

#8 Posted: 2/21/2021 1:25:56 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 Posted: 2/21/2021 9:24:07 AM
netsonicyxf

netsonicyxf

2 likes in 79 posts.

Group: 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 Posted: 2/21/2021 11:00:13 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

really wish Smath can perform like MathCAD



Clear(a,b).PNG

#11 Posted: 2/21/2021 11:10:37 AM
netsonicyxf

netsonicyxf

2 likes in 79 posts.

Group: User

Thanks Jean.

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

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 2/21/2021 1:27:04 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: 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 Posted: 2/21/2021 1:28:15 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 users liked this post
Davide Carpi 2/22/2021 5:37:00 AM
  • New Posts New Posts
  • No New Posts No New Posts