Cody

Solution 2180377

Submitted on 28 Mar 2020
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
x = pi; y_correct = 180; assert(abs(RAD2DEG(x)-y_correct)<0.01)

Assertion failed.

2   Fail
x = -pi; y_correct = -180; assert(abs(RAD2DEG(x)-y_correct)<0.01)

Assertion failed.

3   Fail
x = pi/2; y_correct = 90; assert(abs(RAD2DEG(x)-y_correct)<0.01)

Assertion failed.

4   Fail
x = pi/4; y_correct = 45; assert(abs(RAD2DEG(x)-y_correct)<0.01)

Assertion failed.