rss
Twitter Delicious Facebook Digg Stumbleupon Favorites

Friday, October 7, 2011

Convert temperature from Celcius to Fahrenheit

The basic unit of temperature in the International System of Units (SI) is the Kelvin. It has the symbol K.
For everyday applications, it is often convenient to use the Celsius scale, in which 0°C corresponds very closely to the freezing point of water and 100°C is its boiling point at sea level. Because liquid droplets commonly exist in clouds at sub-zero temperatures, 0°C is better defined as the melting point of ice. In this scale a temperature difference of 1 degree Celsius is the same as a 1kelvin increment, but the scale is offset by the temperature at which ice melts (273.15 K).
By international agreement the Kelvin and Celsius scales are defined by two fixing points: absolute zero and the triple point of Vienna Standard Mean Ocean Water, which is water specially prepared with a specified blend of hydrogen and oxygen isotopes. Absolute zero is defined as precisely 0K and−273.15°C. It is the temperature at which all classical translational motion of the particles comprising matter ceases and they are at complete rest in the classical model. Quantum-mechanically, however, zero-point motion remains and has an associated energy, the zero-point energy. Matter is in its ground state, and contains no thermal energy. The triple point of water is defined as 273.16K and 0.01°C. This definition serves the following purposes: it fixes the magnitude of the kelvin as being precisely 1 part in 273.16 parts of the difference between absolute zero and the triple point of water; it establishes that one kelvin has precisely the same magnitude as one degree on the Celsius scale; and it establishes the difference between the null points of these scales as being 273.15K (0K = −273.15°C and 273.16K = 0.01°C).
In the United States, the Fahrenheit scale is widely used. On this scale the freezing point of water corresponds to 32 °F and the boiling point to 212 °F. The Rankine scale, still used in fields of chemical engineering in the U.S., is an absolute scale based on the Fahrenheit increment.

Conversion

The following table shows the temperature conversion formulas for conversions to and from the Celsius scale.
from Celsiusto Celsius
Fahrenheit[°F] = [°C] × 95 + 32[°C] = ([°F] − 32) × 59
Kelvin[K] = [°C] + 273.15[°C] = [K] − 273.15
Rankine[°R] = ([°C] + 273.15) × 95[°C] = ([°R] − 491.67) × 59
Delisle[°De] = (100 − [°C]) × 32[°C] = 100 − [°De] × 23
Newton[°N] = [°C] × 33100[°C] = [°N] × 10033
Réaumur[°Ré] = [°C] × 45[°C] = [°Ré] × 54
Rømer[°Rø] = [°C] × 2140 + 7.5[°C] = ([°Rø] − 7.5) × 4021
public class Temp {
  public static void main(String[] args) {
    double celsius = 100;
    double fahrenheit = celsius*9.0/5.0 +32;
    System.out.println("Fahrenheit equivalent: " + fahrenheit);
  }
}

0 comments:

Post a Comment

Powered by Blogger.