Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
p=1; q=3;
y_correct = 6;
assert(isequal(cantor_rational2index(p,q),y_correct))
ans =
[]
|
2 | Pass |
p=2; q=3;
y_correct = 9;
assert(isequal(cantor_rational2index(p,q),y_correct))
ans =
[]
|
3 | Pass |
p=22; q=7;
y_correct = 385;
assert(isequal(cantor_rational2index(p,q),y_correct))
ans =
[]
|
4 | Pass |
p=355; q=113;
y_correct = 108924;
assert(isequal(cantor_rational2index(p,q),y_correct))
ans =
[]
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13055 Solvers
199 Solvers
219 Solvers
Is this number Munchhausen Narcissistic?
142 Solvers
379 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!