Message Boards Message Boards

0
|
5315 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Squaring temperature units?

You have a physical equation that needs temperature in Kelvin to some power $n$ and you want to convert this equation to one in Celcius or even Fahrenheit for ease of computation. You might do the following.

$y= (T[K])^n = (T[^oC] - 273.15[^oC] )^n$

Which for $n=1$ is the definition of C in terms of K.

However, Mathematica gives a wrong result.

Table[UnitConvert[Quantity[1., "DegreesCelsius"]^n]^(1/n), {n, 1, 2}]
(* {274.15K,1.K} *)

$0[^oC]^2 = 0[K]^2$ for Mathematica, even though, $0[^oC] = 273.15[K]$ !

It appears Mathematica handles bad power of non-SI units that require an offset to be scaled to SI units.

POSTED BY: Thales Fernandes

Have a look at the tutorial/TemperatureUnits page in the documentation.

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract