Cody

Solution 1266482

Submitted on 11 Sep 2017 by Peng Liu
  • Size: 35
  • This is the leading solution.
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(cos(sin(1)), 1 > @sin > @cos))

2   Pass
isequal(linspace(1, 3), {1, 3} > @linspace) > @assert

3   Pass
a = rand(1,5); [b, s] = {a, 'descend'} > @sort [c, t] = sort(a, 'descend'); {isequal(b, c) && isequal(s, t)} > @assert

b = 0.6420 0.4370 0.3430 0.3167 0.0034 s = 3 1 4 2 5

4   Pass
{sum(sin(cos(magic(5).^2+1))), magic(5) > @(x)x.^2+1 > @cos > @sin > @sum} > @isequal > @assert