Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y=1;
z_correct = 1;
assert(isequal(dividing(x,y),z_correct))
|
2 | Pass |
x = 1;
y=0;
z_correct = 'ERROR';
assert(isequal(dividing(x,y),z_correct))
z =
'ERROR'
|
3 | Pass |
x = Inf;
y=-Inf;
z_correct = 'ERROR';
assert(isequal(dividing(x,y),z_correct))
z =
'ERROR'
|
4 | Pass |
x = 1;
y=NaN;
z_correct = 'ERROR';
assert(isequal(dividing(x,y),z_correct))
z =
'ERROR'
|
Get the length of a given vector
3566 Solvers
359 Solvers
323 Solvers
136 Solvers
Basic commands - Least common multiple
151 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!