Measurment units bug? - Can't add degreeC to the variable - Сообщения
#21 Опубликовано: 17.09.2021 08:08:24
1 пользователям понравился этот пост
Oscar Campo 17.09.2021 08:12:00
#22 Опубликовано: 17.09.2021 10:59:44
#23 Опубликовано: 17.09.2021 14:41:27
Jean, I have to ask you to stay on-topic.
There is clearly a bug, and since these units are non-linear you cannot bypass the issue with simple workarounds.
Using a parallel system of units might come in handy in some specific cases, but is useless if you cannot link it with other built-in units and check simensional inconsistencies.
There is clearly a bug, and since these units are non-linear you cannot bypass the issue with simple workarounds.
Using a parallel system of units might come in handy in some specific cases, but is useless if you cannot link it with other built-in units and check simensional inconsistencies.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Oscar Campo 17.09.2021 15:09:00
#24 Опубликовано: 17.09.2021 16:36:57
#25 Опубликовано: 17.09.2021 17:07:41
#26 Опубликовано: 19.09.2021 11:46:58
Multiplying a variable by a nonlinear unit seems to make SMath forget or ignore the definition of that variable in that cell. Thats a bug for sure.
However, if you store that multiplication in another variable and then evaluate that in another cell, the original variable is again in the context and the correct result is shown. Thus, separation of definition and display via storage in a new variable is a possible solution to the original problem.
If it is just about parallel usage of dimensional and non-dimensional quantities, then just swapping definitions might also help.
This means deriving the non-dimensional quantity from the dimensional one instead of the other way around.
Worksheet2.sm (7 КиБ) скачан 20 раз(а).

However, if you store that multiplication in another variable and then evaluate that in another cell, the original variable is again in the context and the correct result is shown. Thus, separation of definition and display via storage in a new variable is a possible solution to the original problem.
If it is just about parallel usage of dimensional and non-dimensional quantities, then just swapping definitions might also help.
This means deriving the non-dimensional quantity from the dimensional one instead of the other way around.
Worksheet2.sm (7 КиБ) скачан 20 раз(а).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 пользователям понравился этот пост
-
Новые сообщения
-
Нет новых сообщений