Cody

Solution 1937287

Submitted on 15 Sep 2019 by ChanXy
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
r=1 seta=pi/2 y_correct = 0.7854; assert(abs(sectorarea(r,seta)-y_correct)<0.001)

r = 1 seta = 1.5708 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In sectorarea (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
r=2 seta=pi/2 y_correct = pi; assert(abs(sectorarea(r,seta)-y_correct)<0.001)

r = 2 seta = 1.5708 [Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In sectorarea (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]