Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = 4; B = 10;
y_correct = 5;
assert(isequal(fermat(A,B),y_correct))
ans =
5
|
2 | Pass |
A = 20; B = 10;
y_correct = [5 10 13 15 17];
assert(isequal(fermat(A,B),y_correct))
ans =
5 10 13 15 17
|
3 | Pass |
A = 20; B = 30;
y_correct = [ 5 10 13 15 17 20 25 26 29 30 34];
assert(isequal(fermat(A,B),y_correct))
ans =
5 10 13 15 17 20 25 26 29 30 34
|
4 | Pass |
A = 17; B = 33;
y_correct = [5 10 13 15 17 20 25 26 34];
assert(isequal(fermat(A,B),y_correct))
ans =
5 10 13 15 17 20 25 26 34
|
289 Solvers
Back to basics 9 - Indexed References
392 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
141 Solvers
There are 10 types of people in the world
310 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!