Cody

Solution 2316553

Submitted on 21 May 2020
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
r=1 seta=pi/2 y_correct = 0.7854; assert(abs(sectorarea(r,seta)-y_correct)<0.001)

r = 1 seta = 1.5708

Unrecognized function or variable 'x'. Error in sectorarea (line 2) y =x*(r^2)*seta; Error in Test1 (line 4) assert(abs(sectorarea(r,seta)-y_correct)<0.001)

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

r = 2 seta = 1.5708

Unrecognized function or variable 'x'. Error in sectorarea (line 2) y =x*(r^2)*seta; Error in Test2 (line 4) assert(abs(sectorarea(r,seta)-y_correct)<0.001)