Cody

Solution 1679125

Submitted on 22 Nov 2018 by Alan
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
P=0; a=0; b=1; V_correct=0; assert(isequal(solid_of_revolution(P,a,b),V_correct));

l = 0 V = 0

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

l = 1 V = 1

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

l = 1 0 0 V = 0.3333

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

l = 1 2 3 2 1 V = 413.1000

More from this Author9