Cody

Solution 192250

Submitted on 17 Jan 2013 by Aurelien Queffurust
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
%% t=[7 30 15]; t_correct = [43.625 91.5]; assert(max(abs(clockHandAngDifferences(t)-t_correct))<1e-10);
H = 7 M = 30.2500 A2 = -43.6250 T = 316.3750 43.6250 R = 43.6250 z = 2 angDiffs = 43.6250 91.5000
2   Pass
%% t=[11 59 59]; t_correct = [0.0916666666666401 5.89999999999998]; assert(max(abs(clockHandAngDifferences(t)-t_correct))<1e-10);
H = 11 M = 59.9833 A2 = -0.0917 T = 359.9083 0.0917 R = 0.0917 z = 2 angDiffs = 0.0917 5.9000
3   Pass
%% t=[3 45 50]; t_correct = [-162.083333333333 -25]; assert(max(abs(clockHandAngDifferences(t)-t_correct))<1e-10);
H = 3 M = 45.8333 A2 = 162.0833 T = 197.9167 162.0833 R = 162.0833 z = 2 R = -162.0833 angDiffs = -162.0833 -25.0000