def c_to_f(c): """ Given a value c in degrees celsius, this computes and returns the equivalent temperature value in degrees fahrenheit. """ degrees = add(truediv(mul(c,9),5),32) return forma.temp(degrees)
def f_to_c(f): """ Given a value f in degrees fahrenheit, this computes and returns the equivalent temperature value in degrees celsius. """ degrees = truediv(mul(sub(f,32.0),5.0),9.0) return forma.temp(degrees)