Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline marcofk  
#1 Posted : 05 April 2012 22:08:31(UTC)
marcofk


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.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 05 April 2012 22:35:41(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 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!"
Offline kilele  
#3 Posted : 05 April 2012 23:18:15(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 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
Offline omorr  
#4 Posted : 05 April 2012 23:37:48(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 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!"
Offline kilele  
#5 Posted : 06 April 2012 00:33:58(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 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 expansions

Edited by user 17 December 2012 14:13:32(UTC)  | Reason: Not specified

Offline omorr  
#6 Posted : 06 April 2012 01:04:15(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 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!"
Offline marcofk  
#7 Posted : 06 April 2012 02:03:56(UTC)
marcofk


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.
Offline Andrey Ivashov  
#8 Posted : 06 April 2012 14:14:52(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 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.
thanks 2 users thanked Andrey Ivashov for this useful post.
on 06/04/2012(UTC),  on 21/08/2012(UTC)
Offline marcofk  
#9 Posted : 12 April 2012 16:16:05(UTC)
marcofk


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.
Offline Lyle  
#10 Posted : 25 April 2012 20:18:56(UTC)
Lyle

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
Offline andreas  
#11 Posted : 08 November 2012 13:24:17(UTC)
andreas

Rank: Newbie

Groups: Registered
Joined: 08/11/2012(UTC)
Posts: 2
Sweden

Originally Posted by: Lyle Go to Quoted Post
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
Offline kilele  
#12 Posted : 08 November 2012 14:51:31(UTC)
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 132 time(s) in 113 post(s)
Originally Posted by: andreas Go to Quoted Post
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#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

Edited by user 08 November 2012 15:05:53(UTC)  | Reason: Not specified

Offline andreas  
#13 Posted : 08 November 2012 15:17:38(UTC)
andreas

Rank: Newbie

Groups: Registered
Joined: 08/11/2012(UTC)
Posts: 2
Sweden

Originally Posted by: kilele Go to Quoted Post
Originally Posted by: andreas Go to Quoted Post
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#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.
Users browsing this topic
Guest
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.