Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
foo=@cosh;
goo=@(x)sqrt(cosh(x)+pi);
winner=[];
for k=1:10; winner(end+1)=race(foo,goo); end
assert(all(winner==1))
|
2 | Pass |
foo=@num2str;
goo=@log10;
winner=[];
for k=1:10; winner(end+1)=race(foo,goo); end
assert(all(winner==2))
|
3 | Fail |
foo=@gamma;
goo=@sign;
winner=[];
for k=1:10; winner(end+1)=race(foo,goo); end
assert(all(winner==1))
|
88 Solvers
235 Solvers
96 Solvers
Accessing elements on the diagonal
85 Solvers
208 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!