SMath Studio Forum
»
SMath Studio
»
Questions
»
How to enforcing simbolic evaluation?
  Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 34
|
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: Advanced Member Groups: Registered
Joined: 04/07/2015(UTC) Posts: 5,163  Was thanked: 818 time(s) in 650 post(s)
|
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 34
|
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: Advanced Member Groups: Registered
Joined: 04/07/2015(UTC) Posts: 5,163  Was thanked: 818 time(s) in 650 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: 61
Was thanked: 12 time(s) in 12 post(s)
|
I think the only way is to delete the defintions by using Clear(a;  = .
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 04/07/2015(UTC) Posts: 5,163  Was thanked: 818 time(s) in 650 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: Advanced Member Groups: Registered
Joined: 04/07/2015(UTC) Posts: 5,163  Was thanked: 818 time(s) in 650 post(s)
|
Originally Posted by: Jean Giraud  No need, algo is self clearing. 
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 647  Was thanked: 348 time(s) in 226 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: 34
|
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: Advanced Member Groups: Registered
Joined: 04/07/2015(UTC) Posts: 5,163  Was thanked: 818 time(s) in 650 post(s)
|
Originally Posted by: netsonicyxf  really wish Smath can perform like MathCAD 
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 10/03/2020(UTC) Posts: 34
|
Thanks Jean.
BTW, MathCAD doesn't need to do clearance.
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 04/07/2015(UTC) Posts: 5,163  Was thanked: 818 time(s) in 650 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,329   Location: Italy Was thanked: 1173 time(s) in 772 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 please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects |
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 647  Was thanked: 348 time(s) in 226 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.