Cody

Problem 45198. Convert Fahrenheit to Kelvin

Solution 2007877

Submitted on 7 Nov 2019 by Nikolaos Nikolaou
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 68; y_correct = 293.15; tolerance = 1e-12; assert(abs(fahrenheit_to_kelvin(x)-y_correct)<tolerance)

k = 2.931500000000000e+02

2   Pass
x = 1; y_correct = 255.9278; tolerance = 2.3e-05; assert(abs(fahrenheit_to_kelvin(x)-y_correct)<tolerance)

k = 2.559277777777778e+02

3   Pass
x = 123; y_correct = 323.7056; tolerance = 4.5e-05; assert(abs(fahrenheit_to_kelvin(x)-y_correct)<tolerance)

k = 3.237055555555556e+02