Cody

Solution 1387695

Submitted on 20 Dec 2017
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   Fail
T = 100; u1 = 'C'; u2 = 'F'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-212) < eps)

ans = 4932

Assertion failed.

2   Fail
T = 100; u1 = 'C'; u2 = 'R'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-671.67) < eps)

ans = 3232

Assertion failed.

3   Fail
T = 100; u1 = 'C'; u2 = 'C'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-100) < eps)

ans = 9191

Assertion failed.

4   Fail
T = 100; u1 = 'C'; u2 = 'K'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-373.15) < eps)

ans = 3232

Assertion failed.

5   Fail
T = 100; u1 = 'K'; u2 = 'F'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-(-279.67)) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test5 (line 5) assert(abs(T_convertor(T,u1,u2)-(-279.67)) < eps)

6   Fail
T = 100; u1 = 'K'; u2 = 'R'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-180) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test6 (line 5) assert(abs(T_convertor(T,u1,u2)-180) < eps)

7   Fail
T = 100; u1 = 'K'; u2 = 'C'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-(-173.15)) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test7 (line 5) assert(abs(T_convertor(T,u1,u2)-(-173.15)) < eps)

8   Fail
T = 100; u1 = 'K'; u2 = 'K'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-100) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test8 (line 5) assert(abs(T_convertor(T,u1,u2)-100) < eps)

9   Fail
T = 100; u1 = 'F'; u2 = 'F'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-100) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test9 (line 5) assert(abs(T_convertor(T,u1,u2)-100) < eps)

10   Fail
T = 100; u1 = 'F'; u2 = 'R'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-559.67) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test10 (line 5) assert(abs(T_convertor(T,u1,u2)-559.67) < eps)

11   Fail
T = 100; u1 = 'F'; u2 = 'C'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-37.7777778) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test11 (line 5) assert(abs(T_convertor(T,u1,u2)-37.7777778) < eps)

12   Fail
T = 100; u1 = 'F'; u2 = 'K'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-310.9277778) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test12 (line 5) assert(abs(T_convertor(T,u1,u2)-310.9277778) < eps)

13   Fail
T = 100; u1 = 'R'; u2 = 'F'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-(-359.67)) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test13 (line 5) assert(abs(T_convertor(T,u1,u2)-(-359.67)) < eps)

14   Fail
T = 100; u1 = 'R'; u2 = 'R'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-100) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test14 (line 5) assert(abs(T_convertor(T,u1,u2)-100) < eps)

15   Fail
T = 100; u1 = 'R'; u2 = 'C'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-(-217.5944444)) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test15 (line 5) assert(abs(T_convertor(T,u1,u2)-(-217.5944444)) < eps)

16   Fail
T = 100; u1 = 'R'; u2 = 'K'; eps = 1e-4; assert(abs(T_convertor(T,u1,u2)-55.5555556) < eps)

Index exceeds matrix dimensions. Error in T_convertor (line 24) A(r,c)*T_in + B(r,c) Error in Test16 (line 5) assert(abs(T_convertor(T,u1,u2)-55.5555556) < eps)