Change Unit's color

Change Unit's color - Change color of Units - Сообщения

#1 Опубликовано: 11.06.2023 06:52:11
Hessam Moosavi

Hessam Moosavi

0 сообщений из 1 понравились пользователям.

Группа: 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 Опубликовано: 11.06.2023 09:56:35
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Can anyone help me with this ?


I don't think possible.

UnitsColor.PNG

#3 Опубликовано: 11.06.2023 11:33:40
overlord

overlord

552 сообщений из 1332 понравились пользователям.

Группа: 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 КиБ) скачан 29 раз(а).

2023-06-11_17-14.png
#4 Опубликовано: 12.06.2023 11:42:30
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 32 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Опубликовано: 20.06.2023 19:36:16
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 сообщений из 164 понравились пользователям.

Группа: 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 Опубликовано: 21.06.2023 09:39:50
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

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

Freak.PNG
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений