Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at wri.com

>   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 elmg.com

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]= ---------
          Watt

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

Out[4]= 333.15

I hope this helps.

--Ian

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






  • 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?