Change Unit's color

Change Unit's color - Change color of Units - Messaggi

#1 Pubblicato: 11/06/2023 06:52:11
Hessam Moosavi

Hessam Moosavi

0 apprezzamenti in 1 post.

Gruppo: User

Hi all,

I want to show the amount of variations in the formulas, like the red part in the below image.

Currently Smath just calculates the result from the formula and does not show the amounts in the formula.

Can anyone help me with this?

units.jpg
#2 Pubblicato: 11/06/2023 09:56:35
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

Can anyone help me with this ?


I don't think possible.

UnitsColor.PNG

#3 Pubblicato: 11/06/2023 11:33:40
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

I want to show the amount of variations in the formulas, like the red part in the below image.


Welcome to forum and SMath community.
Near every new user asks what you seek.
Unfortunately what you asked is not possible currently.
And I am afraid won't ever be available anytime.

This is how Smath works. Smath is not a equation editor.
It is a calculation program, similar but not same to mathcad.
SMath doesn't even store units as they have been input.
They are always converted base SI units (m,kg,ca,mole,s,K,A).
I can't be 100% sure but near all calculation softwares do this.
(Maxima, Mathcad, Maple, Mathematica, GNU Octave, etc)

However, you can write some tricks and functions to show your amounts.
But it will be time consuming, hard and not practical.
In example below there are a lot of confusing aspects.
I post it for you to show it can be done and check what is done.
It will not work for all situations however.
I will humbly suggest you to not seek showing amounts.
Especially if they contain units.

Regards

show_amounts.sm (5,58 KiB) scaricato 1402 volta(e).

2023-06-11_17-14.png
#4 Pubblicato: 12/06/2023 11:42:30
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

There is an ugly way to enforce storage of the given value "as is" - use the line operator.

Yet the best you get for display is the original numeric value with the original unit converted to base units. I don't see how the latter can be suppressed, yet, it should not be a principal design problem of SMath.

2023-06-12 16_39_11-SMath Solver - [usim.sm].png
usim.sm (4,67 KiB) scaricato 1442 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#5 Pubblicato: 20/06/2023 19:36:16
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

85 apprezzamenti in 181 post.

Gruppo: User

Greetings,

Here are two forum threads you can review in pursuit of your question (they take advantage of SMath quirks that may not be apparent at first):
- https://en.smath.com/forum/yaf_postst23342_Showing-substitutions-in-a-formula.aspx
- https://en.smath.com/forum/yaf_postst23130_substitute-variables.aspx

May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#6 Pubblicato: 21/06/2023 09:39:50
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

... freak style. I don't vote.

Freak.PNG
  • Nuovi post
  • Nessun nuovo post