Can I assign the preferred units to a non optimised calculation?

Can I assign the preferred units to a non optimised calculation? - Can I assign the preferred units to a non optimised calculation? - Сообщения

#1 Опубликовано: 12.06.2020 04:28:06
Absref

Absref

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

Группа: User

Hi,


Whenever I add MPa, GPa or even kN/mm^2 SMath seems to introduce the symbol "s" to the equation which looks to be the software changing it back to kg to do the back end calculations which makes sense. It changes it to kg/(m*s^2)

The problem I have is that when I do the 'Optimise = none' to show all of the values for students, it comes up with the base units which confuses a lot of them. Is there any way of assigning the units for these individual values? So only the kg/(m*s^2) shown on the image attached.

Thanks
Adam

SMath.PNG


Query.sm (6 КиБ) скачан 32 раз(а).
#2 Опубликовано: 12.06.2020 05:45:22
Davide Carpi

Davide Carpi

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

Группа: Moderator

Using a custom unit you could accomplish it, although you have to deal with some extra code if you want even the numerical result.

In this example I've added a whitespace at the end of MPa (using CTRL+K), but it might be another character such as zero-width spaces or using an homoglyph instead of a latin letter (f.e. the cyrillic а in place of latin's a)

2020-06-12 10_41_36-SMath Studio - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Опубликовано: 12.06.2020 09:48:15
Jean Giraud

Jean Giraud

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

Группа: User

A Classroom about units is a delicate session on 3 counts:
1. Maths are unitless except trig [rad]
2. Engineering formulas are in convenient units.
3. Many solvers and other maths must be unitless.

Query.sm (31 КиБ) скачан 30 раз(а).
#4 Опубликовано: 12.06.2020 12:14:18
Jean Giraud

Jean Giraud

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

Группа: User

The Unit-System subprocessor is SI ... useful/annoying.

SI.PNG
#5 Опубликовано: 12.06.2020 18:53:12
Jean Giraud

Jean Giraud

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

Группа: User

There are two ways of using unit system in simple project.
1. live sub-processing if you multiply the quantity by unit
2. silent by not multiplying ... explain
Pink is live as you can see result in SI
Yellow,is NOT multiplied , 'mm' is simply put in there
then back space 'mm' to see a round place holder instead of rectangular.
In that round place holder, insert mm from the unit panel ,,, see 'mm
Look at silent result 'mm³

SI silent.PNG
#6 Опубликовано: 13.06.2020 16:02:35
Absref

Absref

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

Группа: User

Wrote

Using a custom unit you could accomplish it, although you have to deal with some extra code if you want even the numerical result.

In this example I've added a whitespace at the end of MPa (using CTRL+K), but it might be another character such as zero-width spaces or using an homoglyph instead of a latin letter (f.e. the cyrillic а in place of latin's a)

2020-06-12 10_41_36-SMath Studio - [Page1_].png



Thanks David, works perfectly
#7 Опубликовано: 13.06.2020 16:05:46
Absref

Absref

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

Группа: User

Wrote

There are two ways of using unit system in simple project.
1. live sub-processing if you multiply the quantity by unit
2. silent by not multiplying ... explain
Pink is live as you can see result in SI
Yellow,is NOT multiplied , 'mm' is simply put in there
then back space 'mm' to see a round place holder instead of rectangular.
In that round place holder, insert mm from the unit panel ,,, see 'mm
Look at silent result 'mm³

SI silent.PNG



Thanks Jean
#8 Опубликовано: 13.06.2020 19:15:22
Jean Giraud

Jean Giraud

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

Группа: User

So little SI applies to Engineering !
In my times, Mathcad, Matlab, Mathematica were not even pregnant.
Try this example, anything Q, D, mu, rho.

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