BUGS. Error in units

BUGS. Error in units - Messages

#1 Posted: 2/12/2020 7:34:19 AM
veb

veb

1 likes in 38 posts.

Group: User

Incorrect calculations with units
see example
Maybe I was wrong somewh
ddd.png_001.png
bugs Units.sm (6 KiB) downloaded 30 time(s).ere
#2 Posted: 2/12/2020 7:47:49 AM
veb

veb

1 likes in 38 posts.

Group: User

ddd.png_0021.png

It turns out that the program before multiplication translates into Kelvin, and then in Celsius.
It turns out that it is necessary to increase the temperature somehow in a special way. help is needed
#3 Posted: 2/12/2020 8:35:31 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The question is: what do you mean by "a*0.5"? What is the physical meaning of this`?

The trouble comes from the thermodynamic temperature as a physical quantity (regardless of what units are used) may be not proportional to the numerical value if non-absolute units are used.

If you have in mind to directly manipulate the numerical value, then the result obviously must depend on what units you use. Then it is better to first extract the numerical value, then do the manipulation and then re-apply a unit.

There is indeed a bug, the error message below is pointless and un-useful.

A safe alternative is to use offset-free difference units tagged with Delta.

tunits.png
tunits.sm (4 KiB) downloaded 31 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
frapuano 2/12/2020 1:31:00 PM
#4 Posted: 2/12/2020 9:08:39 AM
veb

veb

1 likes in 38 posts.

Group: User

Wrote

The question is: what do you mean by "a*0.5"? What is the physical meaning of this`?

The trouble comes from the thermodynamic temperature as a physical quantity (regardless of what units are used) may be not proportional to the numerical value if non-absolute units are used.

If you have in mind to directly manipulate the numerical value, then the result obviously must depend on what units you use. Then it is better to first extract the numerical value, then do the manipulation and then re-apply a unit.

There is indeed a bug, the error message below is pointless and un-useful.

A safe alternative is to use offset-free difference units tagged with Delta.



I think this is a mistake. You just need to take half the temperature from 20 C. Initially, in reference books and in other literature, half from 20 C, this is 10 C, and not 146K (-126C). Using the program on autopilot, with large formulas. The user may simply not notice that the manipulations with the temperature values ​​are not the same as with other elements. There is a high probability of errors! I know that it is possible to remove the unit of measurement to count and return. You and I know this, while others can make mistakes. It would be possible to make a custom SI table for calculations, then the user himself would decide what half C is and what half F
  • New Posts New Posts
  • No New Posts No New Posts