Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
tic
for i = 1 : 150
s = num2str([randi(9),randi([0, 9], 1, i)],-6);
t = java.math.BigInteger(s);
a = big_integer_sqrt(char(t.pow(2)));
assert(isequal(a, char(s)));
end
toc
x =
'1600'
x =
'1 2.4495 0 0'
|
Back to basics 9 - Indexed References
392 Solvers
57 Solvers
84 Solvers
Natural numbers in string form
346 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!