Cody

Solution 1608383

Submitted on 13 Aug 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
P=0; a=0; b=1; V_correct=0; assert(isequal(solid_of_revolution(P,a,b),V_correct));

Undefined function 'sym' for input arguments of type 'char'. Error in solid_of_revolution (line 2) sym x Error in Test1 (line 5) assert(isequal(solid_of_revolution(P,a,b),V_correct));

2   Fail
P=1; a=0; b=1; V_correct=1; assert(isequal(solid_of_revolution(P,a,b),V_correct));

Undefined function 'sym' for input arguments of type 'char'. Error in solid_of_revolution (line 2) sym x Error in Test2 (line 5) assert(isequal(solid_of_revolution(P,a,b),V_correct));

3   Fail
P=[1 0]; a=0; b=1; V_correct=1/3; assert(isequal(solid_of_revolution(P,a,b),V_correct));

Undefined function 'sym' for input arguments of type 'char'. Error in solid_of_revolution (line 2) sym x Error in Test3 (line 5) assert(isequal(solid_of_revolution(P,a,b),V_correct));

4   Fail
P=[1 1 1]; a=1; b=4; V_correct=4131/10; assert(isequal(solid_of_revolution(P,a,b),V_correct));

Undefined function 'sym' for input arguments of type 'char'. Error in solid_of_revolution (line 2) sym x Error in Test4 (line 5) assert(isequal(solid_of_revolution(P,a,b),V_correct));