Measurment units bug?

Measurment units bug? - Can't add degreeC to the variable - 消息

#21 已发布: 2021/9/17 08:08:24
Porschaka

Porschaka

2个赞,共5个帖子。

组: User

Wrote

Hello
I think the following can be done

Kelvin_Celsius.png

Best Regards

Carlos



I think it is the best solution for now, Thank you, Carlos!
1位用户喜欢此帖子
Oscar Campo 2021/9/17 08:12:00
#22 已发布: 2021/9/17 10:59:44
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Quick Units converter.

ConvertUnit.PNG
#23 已发布: 2021/9/17 14:41:27
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

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.
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 2021/9/17 15:09:00
#24 已发布: 2021/9/17 16:36:57
Arie

Arie

94个赞,共285个帖子。

组: User

It may be a bug because it doesn't evaluate. But what should it evaluate to?
My argument would be 3016.65 degC!

bug.png



Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#25 已发布: 2021/9/17 17:07:41
Arie

Arie

94个赞,共285个帖子。

组: User

Workaround that preserves units.

Also confirms my assertion above.

workaround.png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#26 已发布: 2021/9/19 11:46:58
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

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.94 KiB)已下载 1219 次。
Worksheet2.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
3位用户喜欢此帖子
sergio 2021/9/19 14:18:00, NDTM Amarasekera 2021/9/19 14:29:00, Oscar Campo 2021/9/19 22:38:00
  • 有新帖
  • 无新帖