Display values with definition - Messages
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.
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
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
WroteBy 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.
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 expansions
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
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.
Regards.
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.
Z := A + B = 17.0
I would recommend that it be added to SMath's feature set.
Lyle
WroteAs 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
WroteIf 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/forum/yaf_postsm6545_Display-values-with-definition.aspx#post6545
Omorr 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
WroteWroteIf 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/forum/yaf_postsm6545_Display-values-with-definition.aspx#post6545
Omorr 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.
a:=10
b:=5
c=a*b = 10*5 = 50
hope can get it. tq
-
New Posts
-
No New Posts