Cody

Solution 1488993

Submitted on 12 Apr 2018
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 = 90; y = inf; assert(isequal(tangent1(x),y))

Not enough input arguments. Error in deg2rad (line 10) if isfloat(angleInDegrees) Error in tangent1 (line 2) x=deg2rad Error in Test1 (line 3) assert(isequal(tangent1(x),y))

2   Fail
x = 45; y = 1; assert(isequal(tangent1(x),y))

Not enough input arguments. Error in deg2rad (line 10) if isfloat(angleInDegrees) Error in tangent1 (line 2) x=deg2rad Error in Test2 (line 3) assert(isequal(tangent1(x),y))