  Rank: Member Groups: Registered
Joined: 01/02/2012(UTC) Posts: 19 Location: UK
Was thanked: 8 time(s) in 4 post(s)
|
Hello all.
I was wondering if it's possible to add a feature that displays the result of an equation after its definition, for example:
A:= 5
x:= 3
y:= A*x = 15
That would remove a lot of duplication in creating a calculation sheet, although it might not seem so evident from the example (I had to keep it short as it's not an existing feature - to my knowledge).
Of course, if the feature already exists, can anyone point me out how to use it? Smath won't let me type the "equal" sign after I've defined a variable using ":=" in the same line.
Thanks for any response.
Regards.
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
Hello, The equal sign at the end might be redundant IMHO. Maybe other users will not agree with me. You can just type "y=" and see its result. Moreover: You can point - hoover the mouse over the expression and see its actual result,  Then you recheck it you suspect that it has been redefined somewhere in the worksheet  Or you can just type the variable name - you will see its value when the Dynamic Assistance is active. Regards, Radovan Edited by user 05 April 2012 22:43:13(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 133 time(s) in 114 post(s)
|
By the way, wouldn't be useful a feature to display the same equation entered by the user but replacing variables with its current values ? That would be handy to improve readibility of your documents as well as avoid errors in your calculations. For example: A:=5 x:=3 y:=A*x=5*3
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
kilele wrote:By the way, wouldn't be useful a feature to display the same equation entered by the user but replacing variables with its current values ? That would be handy to improve readibility of your documents as well as avoid errors in your calculations. For example: A:=5 x:=3 y:=A*x=5*3 Ah yes, I remember that Andrey mentioned something similar - can not find the actual post about it, sorry. As soon as I find it I'll let you know. Maybe Andrey will have some more information about this. Regards, Radovan EDIT: Sorry, I was wrong. I remembered this post equal sign. It seems it has nothing related to your question. It was about changing the "equal sign" for the symbolic result. Edited by user 06 April 2012 00:01:08(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 133 time(s) in 114 post(s)
|
Yes, there could be another equal sign to allow replication of the equation in the same way as the user entered the terms(same order) followed by the same expression replacing variables with their values. Taking the above example, imagine that you have A and X assignments and the equation definition scattered around your sheet, then you might want to recall the function definition followed by its particular expansion and finally the result of the calculation, something like this A:=5 x:=3 y:=A*x //further on to both explain and present results y=A*x=5*3=15 Edit: See my proposed implementation for user defined expansionsEdited by user 17 December 2012 14:13:32(UTC)
| Reason: Not specified
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
Hello, kilele wrote://later on to both explain and present results y=A*x=5*3=15 I think I get your point, but imagine a more complex expression which includes vectors, matrices, function calls etc. I guess that this might make quite a mess in the sheet by expanding all the terms with subsequent equal signs. Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Member Groups: Registered
Joined: 01/02/2012(UTC) Posts: 19 Location: UK
Was thanked: 8 time(s) in 4 post(s)
|
Radovan, thanks for your take on things. I am aware that "functionally" the equal sign is redundant. I am doing many acoustic and structural calculations where I have to "show my workings" as well as the results, and I was just thinking that, rather than add a new line (or box) to show the result of a calculation, being able to show the result at the end of the same calculation would make the calculation report more intelligible. It would also have the benefit of having one less box to reposition when you're reshuffling your calcs around, which I find annoying for two reasons: 1- If I move the definition further down, I lose the result, so I end up spending a lot of time reshuffling boxes rather than moving on with the calcs 2- If the definition uses fractions, powers, roots or integrals (all taller than a line of text), and I try to place the result in line with the definition, the alignment will always be off (unless the unit is also taller than a single line of text).
At the moment I am using the very workaround that you suggested, but I am hoping that eventually the feature can be added to make the calcs look more "human" (i.e. resembling what a normally hand-written calculation would look like).
Just my thoughts.
|
|
|
|
  Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,639   Was thanked: 2011 time(s) in 679 post(s)
|
marcofk, I plan to implement the things you've mentioned here (actually these features was already requested many times by others), but it is rather complex task, so I can't say any estimations for now.
Regards.
|
 2 users thanked Andrey Ivashov for this useful post.
|
on 06/04/2012(UTC), on 21/08/2012(UTC)
|
|
  Rank: Member Groups: Registered
Joined: 01/02/2012(UTC) Posts: 19 Location: UK
Was thanked: 8 time(s) in 4 post(s)
|
Andrey,
I just got back in front of my computer, so I can only answer now. Thanks for the update. Apologies if my post was a repeat request: the forum goes back a long way and I might have missed it. I look forward to future development, but there's no doubt that it's a great piece of work you've created.
Regards.
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 25/04/2012(UTC) Posts: 1 Location: Las Vegas, NV
|
As a long time MathCAD user, I find use of the equals sign operator very handy. As others have pointed out it keeps you from having to use another line to display the result. I typically create calculations that I distribute to others and therefore they do not have the option of mousing over the variables.
Z := A + B = 17.0
I would recommend that it be added to SMath's feature set.
Lyle
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 08/11/2012(UTC) Posts: 2 
|
Originally Posted by: Lyle  As a long time MathCAD user, I find use of the equals sign operator very handy. As others have pointed out it keeps you from having to use another line to display the result. I typically create calculations that I distribute to others and therefore they do not have the option of mousing over the variables.
Z := A + B = 17.0
I would recommend that it be added to SMath's feature set.
Lyle Hi! This would be a great feature! Im doing calculations, and when I show them to people they find it hard to follow the equations. If there would be a funktion for showing the equation and the values - eg "Z:=A+B=10+7=17" - I would be extremly grateful! Regards Andreas
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 133 time(s) in 114 post(s)
|
Originally Posted by: andreas  If there would be a funktion for showing the equation and the values - eg "Z:=A+B=10+7=17" - I would be extremly grateful!
Do you mean displaying the final result on the same line and also expansion of the expression in the same way as the user entered the terms ? I made such request on this very same post above, see: http://en.smath.info/for...definition.aspx#post6545Omorr thought that would be a mess to show an expansion of a long/complex expression. I think it would be a nice addition to give the user the freedom to make such expansions, it would be his responsibility not to mess up the entire sheet with lengthy and confuse blocks of expansions. This could be a different equal sign for expansions and to avoid omorrs's concerns about annoying readibility in complex expressions, the user could choose for each output term if it'd be unfolded or not (maybe by right-click over the term to show up a menu) or there could be different depth levels to unfold the entire expression like 0,1,2,3.. from outer to inner terms, etc Edited by user 08 November 2012 15:05:53(UTC)
| Reason: Not specified
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 08/11/2012(UTC) Posts: 2 
|
Originally Posted by: kilele  Originally Posted by: andreas  If there would be a funktion for showing the equation and the values - eg "Z:=A+B=10+7=17" - I would be extremly grateful!
Do you mean displaying the final result on the same line and also expansion of the expression in the same way as the user entered the terms ? I made such request on this very same post above, see: http://en.smath.info/for...definition.aspx#post6545Omorr thought that would be a mess to show an expansion of a long/complex expression. I think it would be a nice addition to give the user the freedom to make such expansions, it would be his responsibility not to mess up the entire sheet with lengthy and confuse blocks of expansions. This could be a different equal sign for expansions and to avoid omorrs's concerns about annoying readibility in complex expressions, the user could choose for each output term if it'd be unfolded or not (maybe by right-click over the term to show up a menu) or there could be different depth levels to unfold the entire expression like 0,1,2,3.. from outer to inner terms, etc Yes, exactly like your request. The idea of being able to choose the depht level in a menu like you says would be awesome.
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 02/10/2013(UTC) Posts: 2  Location: shah alam
|
in 2024, i still need it.
a:=10 b:=5
c=a*b = 10*5 = 50
hope can get it. tq
|
|
|
|
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.