Cody

Solution 162452

Submitted on 15 Nov 2012 by Marco Castelli
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))

ans = 45

2   Pass
%% assert(isequal(atan_degrees(-1,1),135))

ans = 135

3   Pass
%% assert(isequal(atan_degrees(-1,-1),-135))

ans = -135

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

ans = -45

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

ans = 0

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

ans = 90

7   Pass
%% assert(isequal(atan_degrees(-1,0),180))

ans = 180

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

ans = -90