1 страниц (6 вхождений)
handle negative temperatures - Сообщения
#1 Опубликовано: 14.04.2021 12:15:17
#2 Опубликовано: 14.04.2021 14:03:01
1 пользователям понравился этот пост
brotjob 14.04.2021 16:27:00
#3 Опубликовано: 14.04.2021 15:40:31
#4 Опубликовано: 14.04.2021 17:15:18
Thank you for the different replies!
@Jean Giraud: Not to use units is a no go for me. Mars missions have crashed because of this. And I need the units at a different point in my calculation.
@Sergio and alyles: That looks promising and I indeed think it is a bug related to precedence of multiplications. However, in my real calculation I use the temperature as a variable and thus your workarounds do not apply. The workaround with the Delta breaks the function for positive values. Other ideas?
BTW we talk about the magnus formula for saturated vapour pressure over plain water.


I created a bugzilla issue.
@Jean Giraud: Not to use units is a no go for me. Mars missions have crashed because of this. And I need the units at a different point in my calculation.
@Sergio and alyles: That looks promising and I indeed think it is a bug related to precedence of multiplications. However, in my real calculation I use the temperature as a variable and thus your workarounds do not apply. The workaround with the Delta breaks the function for positive values. Other ideas?
BTW we talk about the magnus formula for saturated vapour pressure over plain water.
I created a bugzilla issue.
#5 Опубликовано: 14.04.2021 18:24:55
WroteThank you for the different replies!
However, in my real calculation I use the temperature as a variable and thus your workarounds do not apply. The workaround with the Delta breaks the function for positive values. Other ideas?
Try to get negative value of temperature into a bracket. Not doing so cause the issue.
Minus sign before temperature without bracket performed as multiplication of 5°C with -1.
5°C is considered as 278.15K in SMath thus that way of defining variable resulted to -278.15K.
Could this be considered as bug, maybe. Maybe not. SMath first multiply units with number just before them I guess.
Before any of operations units are performed first, it seems this makes the contradiction.
Regards
1 пользователям понравился этот пост
brotjob 15.04.2021 08:45:00
1 страниц (6 вхождений)
-
Новые сообщения
-
Нет новых сообщений