Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline veb  
#1 Posted : 12 February 2020 13:34:19(UTC)
veb


Rank: Advanced Member

Groups: Registered
Joined: 02/02/2016(UTC)
Posts: 35
Man
Russian Federation

Was thanked: 1 time(s) in 1 post(s)
Incorrect calculations with units
see example
Maybe I was wrong somewh
ddd.png_001.png
bugs Units.sm (7kb) downloaded 9 time(s).ere

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline veb  
#2 Posted : 12 February 2020 13:47:49(UTC)
veb


Rank: Advanced Member

Groups: Registered
Joined: 02/02/2016(UTC)
Posts: 35
Man
Russian Federation

Was thanked: 1 time(s) in 1 post(s)
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

Edited by user 12 February 2020 13:49:47(UTC)  | Reason: Not specified

Offline mkraska  
#3 Posted : 12 February 2020 14:35:31(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
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 (5kb) downloaded 10 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 12/02/2020(UTC)
Offline veb  
#4 Posted : 12 February 2020 15:08:39(UTC)
veb


Rank: Advanced Member

Groups: Registered
Joined: 02/02/2016(UTC)
Posts: 35
Man
Russian Federation

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: mkraska Go to Quoted Post
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
Offline Jean Giraud  
#5 Posted : 12 February 2020 15:55:56(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: veb Go to Quoted Post
Incorrect calculations with units

You may want and need more maths to resume a project.
Some solvers won't take units.

bugs Units [more maths].sm (13kb) downloaded 21 time(s).

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.