SMath Studio Forum
»
SMath Studio
»
Questions
»
How to enforcing simbolic evaluation?
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 67
Was thanked: 1 time(s) in 1 post(s)
|
Even if the variable have been defined. E.g. how to get x=(a+b)(a-b)even if a=1, b=2 Edited by user 20 February 2021 09:20:20(UTC)
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 67
Was thanked: 1 time(s) in 1 post(s)
|
Thanks, but I want to know how to get U=(a+b )*(a-b ), even if a=1, b=2 is on the top Edited by user 20 February 2021 16:29:23(UTC)
| Reason: Not specified
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: netsonicyxf 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 21/10/2016(UTC) Posts: 84
Was thanked: 21 time(s) in 17 post(s)
|
I think the only way is to delete the defintions by using Clear(a; = .
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: MarB I think the only way is to delete the definitions by using Clear(a;= . No need, algo is self clearing.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: Jean Giraud No need, algo is self clearing.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: netsonicyxf 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: Best regards. Alvaro.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 67
Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: MarB I think the only way is to delete the defintions by using Clear(a; = . Originally Posted by: Razonar 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: netsonicyxf really wish Smath can perform like MathCAD
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 67
Was thanked: 1 time(s) in 1 post(s)
|
Thanks Jean.
BTW, MathCAD doesn't need to do clearance.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,868 Was thanked: 980 time(s) in 808 post(s)
|
Originally Posted by: netsonicyxf 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.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,639 Location: Italy Was thanked: 1323 time(s) in 873 post(s)
|
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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
Originally Posted by: netsonicyxf 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: Also notice that you need to eval Clear(a, b ) = 1, if not SMath not recognize that as an instruction. Best regards. Alvaro.
|
1 user thanked Razonar for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
How to enforcing simbolic evaluation?
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.