Cody

Solution 2016726

Submitted on 12 Nov 2019
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   Fail
x = pi; [y,z] = cos_abs(x) assert(isequal(y/z,-1))

Error using - Too many output arguments. Error in cos_abs (line 2) [y,z] = -1; Error in Test1 (line 2) [y,z] = cos_abs(x)

2   Fail
x = pi/2; [y,z] = cos_abs(x) assert(isequal(y/z,-1))

Error using - Too many output arguments. Error in cos_abs (line 2) [y,z] = -1; Error in Test2 (line 2) [y,z] = cos_abs(x)

3   Fail
x = pi/4; [y,z] = cos_abs(x) assert(isequal(y/z,-1))

Error using - Too many output arguments. Error in cos_abs (line 2) [y,z] = -1; Error in Test3 (line 2) [y,z] = cos_abs(x)