Cody

Solution 1581912

Submitted on 12 Jul 2018 by Rafael Hernandez-Walls
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
x = [2 -3 4]; y_correct = (1.+sin(x))./cos(x)+cos(x)/(1.+sin(x)); assert(isequal(your_fcn_name(x),y_correct))

ans = -4.9941 -1.2736 -0.7781

2   Pass
x = 1:3:100; y_correct = (1.+sin(x))./cos(x)+cos(x)/(1.+sin(x)); assert(isequal(your_fcn_name(x),y_correct))

ans = Columns 1 through 18 3.4549 -0.3254 2.2445 -0.4968 1.6117 -0.6969 1.2097 -0.9445 0.9220 -1.2736 0.6982 -1.7553 0.5124 -2.5700 0.3497 -4.3538 0.2005 -12.1419 Columns 19 through 34 0.0577 16.7682 -0.0846 4.9465 -0.2324 2.8476 -0.3924 1.9465 -0.5738 1.4295 -0.7904 1.0827 -1.0656 0.8252 -1.4446 0.6191