Cody

Solution 131831

Submitted on 28 Aug 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% assert(isequal(repeatingdec(1),'0'))

Error: You may not use the command(s) str2func in your code

2   Fail
%% assert(isequal(repeatingdec(3/7),'428571'))

Error: You may not use the command(s) str2func in your code

3   Fail
%% assert(isequal(repeatingdec(.3456345612323),''))

Error: You may not use the command(s) str2func in your code

4   Fail
%% assert(isequal(repeatingdec(1/pi),''))

Error: You may not use the command(s) str2func in your code

5   Fail
%% assert(isequal(repeatingdec(1/13),'076923'))

Error: You may not use the command(s) str2func in your code

6   Fail
%% assert(isequal(repeatingdec(2/33),'06'))

Error: You may not use the command(s) str2func in your code

7   Fail
%% assert(isequal(repeatingdec(.789789789789789789),'789'))

Error: You may not use the command(s) str2func in your code

8   Fail
%% assert(isequal(repeatingdec(.78978978938383838),''))

Error: You may not use the command(s) str2func in your code

9   Fail
%% assert(isequal(repeatingdec(1/exp(1)),''))

Error: You may not use the command(s) str2func in your code

10   Fail
%% assert(isequal(repeatingdec(.78787878787833333),''))

Error: You may not use the command(s) str2func in your code

11   Fail
%% assert(isequal(repeatingdec(.123451234512345),'12345'))

Error: You may not use the command(s) str2func in your code

12   Fail
%% assert(isequal(repeatingdec(1/100),''))

Error: You may not use the command(s) str2func in your code

13   Fail
%% assert(isequal(repeatingdec(1/62),''))

Error: You may not use the command(s) str2func in your code

14   Fail
%% assert(isequal(repeatingdec(1/16),''))

Error: You may not use the command(s) str2func in your code

15   Fail
%% assert(isequal(repeatingdec(1/91),'010989'))

Error: You may not use the command(s) str2func in your code

16   Fail
%% assert(isequal(repeatingdec(0),'0'))

Error: You may not use the command(s) str2func in your code