Welcome Guest! To enable all features please Login or Register.

Error

 2 Pages12>
 Previous Topic Next Topic
 DeepButi #1 Posted : 23 October 2021 13:23:31(UTC) Rank: NewbieGroups: Registered Joined: 23/10/2021(UTC)Posts: 7Location: Sant Cugat Hi, new to SMath and trying to figure how to get the formula with the variable values before the final result.I want to writea: = 3b: = 4a + bclick = and geta + b = 3 + 4 = 7Is this possible?Thks
 Wanna join the discussion?! Login to your SMath Studio Forum forum accountor Register a new forum account.
 Jean Giraud #2 Posted : 23 October 2021 14:57:31(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,801Was thanked: 867 time(s) in 697 post(s)
 overlord #3 Posted : 23 October 2021 15:04:36(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 564Was thanked: 172 time(s) in 124 post(s) Originally Posted by: DeepButi Hi, new to SMath and trying to figure how to get the formula with the variable values before the final result.I want to writea: = 3b: = 4a + bclick = and geta + b = 3 + 4 = 7Is this possible?ThksNot how you wanted in single line but possible.
 DeepButi #4 Posted : 23 October 2021 17:11:27(UTC) Rank: NewbieGroups: Registered Joined: 23/10/2021(UTC)Posts: 7Location: Sant Cugat Originally Posted by: overlord Originally Posted by: DeepButi Hi, new to SMath and trying to figure how to get the formula with the variable values before the final result.I want to writea: = 3b: = 4a + bclick = and geta + b = 3 + 4 = 7Is this possible?ThksNot how you wanted in single line but possible.Thks a lot, it will do.Just my decimal values get displayed as fractionsa := 3.5b := 4.5a + b = 7/2 + 9/2 I can live with that
 Jean Giraud #5 Posted : 23 October 2021 19:25:33(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,801Was thanked: 867 time(s) in 697 post(s) Originally Posted by: DeepButi Just my decimal values get displayed as fractionsEvaluate Numeric.
 overlord #6 Posted : 23 October 2021 21:39:21(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 564Was thanked: 172 time(s) in 124 post(s) Originally Posted by: DeepButi Thks a lot, it will do.Just my decimal values get displayed as fractionsa := 3.5b := 4.5a + b = 7/2 + 9/2You can write variables inside simple functions with this method.This is not a practical way to write variables inside complex functions.And it does not look good too. Yet it is better than nothing.You can write a + b with Ctrl+Shift+K.
 Razonar #7 Posted : 23 October 2021 22:29:43(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 872Was thanked: 475 time(s) in 308 post(s) Hi. This is another way. intermediate_results.sm (15kb) downloaded 13 time(s).Best regards.Alvaro. 1 user thanked Razonar for this useful post. on 24/10/2021(UTC)
 DeepButi #8 Posted : 23 October 2021 23:59:30(UTC) Rank: NewbieGroups: Registered Joined: 23/10/2021(UTC)Posts: 7Location: Sant Cugat Originally Posted by: Razonar Hi. This is another way. intermediate_results.sm (15kb) downloaded 13 time(s).Best regards.Alvaro.That looks exactly as I was looking for ... going to study it. Thks a lot, it will save me quite a bit of time.
 DeepButi #9 Posted : 24 October 2021 22:00:36(UTC) Rank: NewbieGroups: Registered Joined: 23/10/2021(UTC)Posts: 7Location: Sant Cugat Hi Razonar,it works perfectly well for initial formulas, but cannot find any way to use a previous result on a new one.Cannot put all values in a single vals, the simbolic substitution will show in the second formula the formula (not the value) of the calculated value (ee).Cannot either reuse names.Any idea?
 Jean Giraud #10 Posted : 25 October 2021 00:40:20(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,801Was thanked: 867 time(s) in 697 post(s) ... use this document that you can fabricate at will.Cheers ... Jean. Maths Infix QUICK.sm (7kb) downloaded 5 time(s).
 Jean Giraud #11 Posted : 25 October 2021 03:18:26(UTC) Rank: Advanced MemberGroups: Registered Joined: 04/07/2015(UTC)Posts: 5,801Was thanked: 867 time(s) in 697 post(s)
 overlord #12 Posted : 25 October 2021 04:10:44(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/07/2013(UTC)Posts: 564Was thanked: 172 time(s) in 124 post(s) Originally Posted by: DeepButi Any idea?I have an idea, if someone has better you can use it.Rewrite expressions and hide them inside areas.Configure page setup with "no areas".When you save as pdf or print, it will show as continuous. MySum.sm (9kb) downloaded 7 time(s).But here is a humble suggestion.SMath was not coded with intent to show intermediate results.You are going to struggle very much with this approach.Regards
 PompelmoTell #13 Posted : 25 October 2021 13:36:36(UTC) Rank: Advanced MemberGroups: Registered Joined: 23/12/2011(UTC)Posts: 275Location: italyWas thanked: 96 time(s) in 81 post(s) I point out that in a previous post DeepButi used the function Clear("all" ) that despite not giving error does not have a feedback in SM: does not delete any variable.sergio 1 user thanked PompelmoTell for this useful post. on 25/10/2021(UTC)
 Razonar #14 Posted : 25 October 2021 19:29:52(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 872Was thanked: 475 time(s) in 308 post(s) Hi. This is another way. The feature request actually is here.Using You can get Hold.sm (10kb) downloaded 5 time(s).or Hold_v2.sm (10kb) downloaded 5 time(s).Best regards.Alvaro.Edited by user 25 October 2021 19:42:55(UTC)  | Reason: Not specified 1 user thanked Razonar for this useful post. on 25/10/2021(UTC)
 DeepButi #15 Posted : 26 October 2021 00:31:25(UTC) Rank: NewbieGroups: Registered Joined: 23/10/2021(UTC)Posts: 7Location: Sant Cugat Too easy to be true Final step uses fractions to substitute ... Use a:=1.2 in your example and you will see.Actual formulas are for sure more complex so the data display is really confusing.
 Razonar #16 Posted : 26 October 2021 03:06:10(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 872Was thanked: 475 time(s) in 308 post(s) Originally Posted by: DeepButi ... Use a:=1.2 in your example and you will see.Hi. Insert eval( ) in UnHoldBest regards.Alvaro.
 DeepButi #17 Posted : 26 October 2021 11:48:01(UTC) Rank: NewbieGroups: Registered Joined: 23/10/2021(UTC)Posts: 7Location: Sant Cugat Hi. Insert eval( ) in UnHoldBest regards.Alvaro.You are a genious. Thks!Just trying to figure out how to avoid too many decimals now Decimal places set to 4 everywhere
 Razonar #18 Posted : 26 October 2021 18:21:13(UTC) Rank: Advanced MemberGroups: Registered Joined: 28/08/2014(UTC)Posts: 872Was thanked: 475 time(s) in 308 post(s) Originally Posted by: DeepButi ...Just trying to figure out how to avoid too many decimals now Decimal places set to 4 everywhere Hi. Thanks! ... but ... not ... but thanks. That behavior seems to be a bug or an oversight: set the decimal places in the output of an expression with None Optimization. In the meantime, this could be a workaround, but could be dangerous, because change the stored value. Actually I don't really recommend it.Best regards.Alvaro.
 DeepButi #19 Posted : 26 October 2021 20:01:06(UTC) Rank: NewbieGroups: Registered Joined: 23/10/2021(UTC)Posts: 7Location: Sant Cugat Originally Posted by: Razonar Hi. Thanks! ... but ... not ... but thanks. That behavior seems to be a bug or an oversight: set the decimal places in the output of an expression with None Optimization. In the meantime, this could be a workaround, but could be dangerous, because change the stored value. Actually I don't really recommend it.Best regards.Alvaro.Ok, ok. Really it's a BIG THANKS.:round(eval(... works perfectly well:eval(round(... didn't.
 johnspark #20 Posted : 27 October 2021 08:25:12(UTC) Rank: Advanced MemberGroups: Registered Joined: 26/09/2021(UTC)Posts: 48Location: AdelaideWas thanked: 5 time(s) in 3 post(s) Originally Posted by: DeepButi Originally Posted by: Razonar Hi. Thanks! ... but ... not ... but thanks. That behavior seems to be a bug or an oversight: set the decimal places in the output of an expression with None Optimization. In the meantime, this could be a workaround, but could be dangerous, because change the stored value. Actually I don't really recommend it.Best regards.Alvaro.Ok, ok. Really it's a BIG THANKS.:round(eval(... works perfectly well:eval(round(... didn't.Another way...
 Users browsing this topic
 2 Pages12>
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.