BUGS. Error in units

BUGS. Error in units - Poruke

#1 Objavljeno: 12. 2. 2020. 07:34:19
veb

veb

1 svidjanja u 38 postova.

Grupa: User

Incorrect calculations with units
see example
Maybe I was wrong somewh
ddd.png_001.png
bugs Units.sm (6,4 KiB) preuzeto 1553 put(ova).ere
#2 Objavljeno: 12. 2. 2020. 07:47:49
veb

veb

1 svidjanja u 38 postova.

Grupa: 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 Objavljeno: 12. 2. 2020. 08:35:31
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: 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,76 KiB) preuzeto 1560 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
frapuano 12. 2. 2020. 13:31:00
#4 Objavljeno: 12. 2. 2020. 09:08:39
veb

veb

1 svidjanja u 38 postova.

Grupa: 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
  • Novi postovi
  • Nema novih postova