Cody

Solution 1728443

Submitted on 16 Feb 2019
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
assert(isequal(atan_degrees(1,1),45))

2   Fail
assert(isequal(atan_degrees(-1,1),135))

Assertion failed.

3   Fail
assert(isequal(atan_degrees(-1,-1),-135))

Assertion failed.

4   Pass
assert(isequal(atan_degrees(1,-1),-45))

5   Pass
assert(isequal(atan_degrees(1,0),0))

6   Pass
assert(isequal(atan_degrees(0,1),90))

7   Fail
assert(isequal(atan_degrees(-1,0),180))

Assertion failed.

8   Pass
assert(isequal(atan_degrees(0,-1),-90))