Error

 Previous Topic Next Topic
 netsonicyxf #1 Posted : 20 February 2021 09:17:40(UTC) Rank: Advanced MemberGroups: Registered Joined: 10/03/2020(UTC)Posts: 35 Even if the variable have been defined.E.g. how to get x=(a+b）（a-b）even if a=1, b=2Edited by user 20 February 2021 09:20:20(UTC)  | Reason: Not specified
 Wanna join the discussion?! Login to your SMath Studio Forum forum accountor Register a new forum account.
 Jean Giraud #2 Posted : 20 February 2021 15:39:43(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,255Was thanked: 825 time(s) in 656 post(s)
 netsonicyxf #3 Posted : 20 February 2021 16:20:42(UTC) Rank: Advanced MemberGroups: Registered Joined: 10/03/2020(UTC)Posts: 35 Thanks, but I want to know how to get U=(a+b )*(a-b ), even if a=1, b=2 is on the topEdited by user 20 February 2021 16:29:23(UTC)  | Reason: Not specified
 Jean Giraud #4 Posted : 20 February 2021 18:01:23(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,255Was thanked: 825 time(s) in 656 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 topI simply don't understand your request.Read Martin handbook, to learn using Smath.
 MarB #5 Posted : 20 February 2021 19:02:11(UTC) Rank: Advanced MemberGroups: Registered Joined: 21/10/2016(UTC)Posts: 62Was thanked: 13 time(s) in 13 post(s) I think the only way is to delete the defintions by using Clear(a;= .
 Jean Giraud #6 Posted : 20 February 2021 19:15:24(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,255Was thanked: 825 time(s) in 656 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.
 Jean Giraud #7 Posted : 20 February 2021 23:18:06(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,255Was thanked: 825 time(s) in 656 post(s) Originally Posted by: Jean Giraud No need, algo is self clearing.
 Razonar #8 Posted : 21 February 2021 07:25:56(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 687Was thanked: 355 time(s) in 231 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=2Hi. 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.
 netsonicyxf #9 Posted : 21 February 2021 15:24:07(UTC) Rank: Advanced MemberGroups: Registered Joined: 10/03/2020(UTC)Posts: 35 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
 Jean Giraud #10 Posted : 21 February 2021 17:00:13(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,255Was thanked: 825 time(s) in 656 post(s) Originally Posted by: netsonicyxf really wish Smath can perform like MathCAD
 netsonicyxf #11 Posted : 21 February 2021 17:10:37(UTC) Rank: Advanced MemberGroups: Registered Joined: 10/03/2020(UTC)Posts: 35 Thanks Jean.BTW, MathCAD doesn't need to do clearance.
 Jean Giraud #12 Posted : 21 February 2021 18:00:32(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,255Was thanked: 825 time(s) in 656 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.
 Davide Carpi #13 Posted : 21 February 2021 19:27:04(UTC) Rank: Advanced MemberGroups: Registered, Advanced MemberJoined: 13/01/2012(UTC)Posts: 2,344Location: ItalyWas thanked: 1180 time(s) in 776 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
 Razonar #14 Posted : 21 February 2021 19:28:15(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 687Was thanked: 355 time(s) in 231 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. on 22/02/2021(UTC)
 Users browsing this topic
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.