1

Fail

assert(strcmp(string_sqrt(1000,10),'31.6227766016'))
Error in solution: Line: 61 Column: 1
The function "string_multiply" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

2

Fail

assert(strcmp(string_sqrt(10,11),'3.16227766016'))
Error in solution: Line: 61 Column: 1
The function "string_multiply" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

3

Fail

assert(strcmp(string_sqrt(3,100),'1.7320508075688772935274463415058723669428052538103806280558069794519330169088000370811461867572485756'))
Error in solution: Line: 61 Column: 1
The function "string_multiply" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

4

Fail

assert(strcmp(string_sqrt(314159,314),'560.49888492306565872479934293941633491101288779142813321911971670725840486880541273457870660258696202335374555140881778649205224589390756076993240996126057385009263605818384161945745399159720436585888004381611637660905033452884843995010613320008027334007622507916692664539613518278405454926834945753785814159773889523'))
Error in solution: Line: 61 Column: 1
The function "string_multiply" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

5

Fail

a=2:50;
a(sqrt(a)==floor(sqrt(a)))=[];
na=numel(a);
b=zeros(na,100);
for flag=1:na
temp=string_sqrt(a(flag),101);
t2=regexprep(temp,'\.','')'0';
b(flag,:)=t2(1:100);
end
y_correct=sum(sum(b))
assert(isequal(19543,y_correct))
Error in solution: Line: 61 Column: 1
The function "string_multiply" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.

6

Fail

assert(strcmp(string_sqrt(12345,1),'111.1'))
Error in solution: Line: 61 Column: 1
The function "string_multiply" was closed with an 'end', but at least one other function definition was not. To avoid confusion when using nested functions, it is illegal to use both conventions in the same file.
