cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Calculation result with and without units is different (bug?)

DPJB
3-Newcomer

Calculation result with and without units is different (bug?)

Hello,

 

I found a wired behaviour using units in calculations. The result is slightly different if units are used in formula or not. See attached file. Both results must be identical, but they are not. I can even do the calculation in my head and the one with unit is false.

 

Cheers DPJB

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:DPJB)

Not a bug.Temperature units are weird.

Realize that 0 °C = 273.15 K.

So without units you are multiplying with 0^3=0 in the last term when t=0.

But when t=0 °C, you are multiplying with (273.15 K)^3.

You should define your constants A, B and C with K, or Delta°C, but not with °C. And you should adapt your formula to include a reference temperature, is that 0 °C ?

 

Success!
Luc

View solution in original post

4 REPLIES 4
LucMeekes
23-Emerald III
(To:DPJB)

Not a bug.Temperature units are weird.

Realize that 0 °C = 273.15 K.

So without units you are multiplying with 0^3=0 in the last term when t=0.

But when t=0 °C, you are multiplying with (273.15 K)^3.

You should define your constants A, B and C with K, or Delta°C, but not with °C. And you should adapt your formula to include a reference temperature, is that 0 °C ?

 

Success!
Luc

DPJB
3-Newcomer
(To:LucMeekes)

Thanks for your reply. Makes sense now, not quite intuitive.

Werner_E
25-Diamond I
(To:DPJB)

The "units" for temperature can be quite confusing.

Keep in mind, that behind the scenes Prime only uses the base unit Kelvin!

°C is not a unit you can cancel because its not just a multiplication factor.

Werner_E_0-1586183225035.png

 

 

ValeryOchkov
24-Ruby IV
(To:DPJB)

I wish everyone to have a body temperature 615 cpm and not get sick!

pv.png

Announcements

Top Tags