This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 2;
r_correct = -1;
assert(isequal(imagine(n), r_correct))
|
2 | Pass |
n = 7;
r_correct = -sqrt(-1);
assert(isequal(imagine(n), r_correct))
|
3 | Pass |
n = 2520;
r_correct = 1;
assert(isequal(imagine(n), r_correct))
|
4 | Pass |
n = 999914001;
r_correct = sqrt(-1);
assert(isequal(imagine(n), r_correct))
|
All your base are belong to us
463 Solvers
Fahrenheit to Celsius converter
358 Solvers
Side of an equilateral triangle
2595 Solvers
Determine the length of a string of characters
171 Solvers
Create an anti-identity matrix
153 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!