Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
side = 10; nth = 0;
Area_correct = 43;
Perimeter_correct = 30;
[myArea,myPerimeter] = KochSnowFlake(side,nth)
assert(isequal(myArea, Area_correct))
assert(isequal(myPerimeter, Perimeter_correct))
myArea =
43
myPerimeter =
30
|
2 | Pass |
side = 10; nth = 1;
Area_correct = 58;
Perimeter_correct = 40;
[myArea,myPerimeter] = KochSnowFlake(side,nth)
assert(isequal(myArea, Area_correct))
assert(isequal(myPerimeter, Perimeter_correct))
myArea =
58
myPerimeter =
40
|
3 | Pass |
side = 10; nth = 20;
Area_correct = 69;
Perimeter_correct = 9460;
[myArea,myPerimeter] = KochSnowFlake(side,nth)
assert(isequal(myArea, Area_correct))
assert(isequal(myPerimeter, Perimeter_correct))
myArea =
69
myPerimeter =
9460
|
Project Euler: Problem 1, Multiples of 3 and 5
1491 Solvers
Create a Multiplication table matrix...
281 Solvers
219 Solvers
250 Solvers
Calculate compression ratio of engine
76 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!