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);
mdeg =
181.5000
hdeg =
225.1250
ans =
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);
mdeg =
359.9000
hdeg =
359.9917
ans =
0.0917 5.9000
|
3 | Pass |
%%
t=[3 45 50];
t_correct = [-162.083333333333 -25];
assert(max(abs(clockHandAngDifferences(t)-t_correct))<1e-10);
mdeg =
275
hdeg =
112.9167
ans =
-162.0833 -25.0000
|
6063 Solvers
Who knows the last digit of pi?
557 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
380 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
511 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!