Temperature Conversion (temp_conv.py)
The Temperature Conversion module in NumLex provides functions to convert temperatures between Celsius, Fahrenheit, and Kelvin.
Functions
Celsius to Other Scales
-
celsius_to_fahrenheit(celsius)
: Converts a temperature from Celsius to Fahrenheit.fahrenheit = celsius_to_fahrenheit(25) -
celsius_to_kelvin(celsius)
: Converts a temperature from Celsius to Kelvin.kelvin = celsius_to_kelvin(25)
Fahrenheit to Other Scales
-
fahrenheit_to_celsius(fahrenheit)
: Converts a temperature from Fahrenheit to Celsius.celsius = fahrenheit_to_celsius(77) -
fahrenheit_to_kelvin(fahrenheit)
: Converts a temperature from Fahrenheit to Kelvin.kelvin = fahrenheit_to_kelvin(77)
Kelvin to Other Scales
-
kelvin_to_celsius(kelvin)
: Converts a temperature from Kelvin to Celsius.celsius = kelvin_to_celsius(298.15) -
kelvin_to_fahrenheit(kelvin)
: Converts a temperature from Kelvin to Fahrenheit.fahrenheit = kelvin_to_fahrenheit(298.15)