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));
|
2 | Pass |
P=1;
a=0;
b=1;
V_correct=1;
assert(isequal(solid_of_revolution(P,a,b),V_correct));
|
3 | Pass |
P=[1 0];
a=0;
b=1;
V_correct=1/3;
assert(isequal(solid_of_revolution(P,a,b),V_correct));
|
4 | Pass |
P=[1 1 1];
a=1;
b=4;
V_correct=4131/10;
assert(isequal(solid_of_revolution(P,a,b),V_correct));
|
How to find the position of an element in a vector without using the find function
2320 Solvers
276 Solvers
399 Solvers
152 Solvers
Calculate the centroid of a triangle
141 Solvers