Thursday, 15 July 2010

Temperature conversion

The conversion between the Celsius and Farenheit temperature scales is an easy example to program on this calculator.

On the Farenheit temperature scale the freezing and boiling point of water are 32F and 212F, respectively. On the Celsius scale these points are 0C and 100C, respectively.

To convert from a temperature in Farenheit to one in Celsius, we subtract 32 from the temperature, multiply by 5 and divide by 9. So 212F is ((212-32)x5)/9=100 C, as expected.

To convert from a temperature in Celsius to one in Farenheit, we do the inverse of the above, namely we multiply the temperature by 9, divide by 5, and add 32. So 100C is ((100x9)/5)+32=212F, as expected.

No comments:

Post a Comment