MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Temperature conversion

  • Subject: [mg3111] Re: [mg3022] Temperature conversion
  • From: ianc (Ian Collier)
  • Date: 2 Feb 1996 04:20:06 -0600
  • Approved:
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at

>   When using Miscellaneous`SIUnits`,
>   SI[60 Celsius] erroneously returns 60 Kelvin.  Is there a modification
>that I can make to the package to make it convert 60 Celsius to 333 Kelvin
>but still convert 60 Celsius/Watt to 60 Kelvin/Watt.  This might be a
>limitation of SIUnits that can't be overcome.   In that case when I feed a
>temperature to a package, what is the recommended way to guarantee that
>this erroneous conversion doesn't take place?
>   Thanks in advance,
>   Daryl
>   Reece_d at

Try using Convert and ConvertTemperature from Miscellaneous`Units`
rather than SI. Note that Convert issues a message when it
operates on temperature units.

In[1]:= <<Miscellaneous`Units`

In[2]:= Convert[60 Celsius/Watt, Kelvin/Watt]

Convert::temp: Warning: Convert[old,new] converts units of temperature.
    ConvertTemperature[temp,old,new] converts absolute temperature.

        60 Kelvin
Out[2]= ---------

In[4]:= ConvertTemperature[60, Celsius, Kelvin]

Out[4]= 333.15

I hope this helps.


Ian Collier
Technical Sales Support
Wolfram Research, Inc.
tel:(217) 398-0700     fax:(217) 398-0747      ianc at
Wolfram Research Home Page:   

  • Prev by Date: Re: Temperature conversion
  • Next by Date: Re: is this integration possible with mathematica?
  • Previous by thread: Re: Temperature conversion
  • Next by thread: Re: is this integration possible with mathematica?