Cody

Solution 1798417

Submitted on 27 Apr 2019
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(.5, round(1e6*coin_head_match(1))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

2   Fail
assert(isequal(.375, round(1e6*coin_head_match(2))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

3   Fail
assert(isequal(.3125, round(1e6*coin_head_match(3))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

4   Fail
assert(isequal(.273438, round(1e6*coin_head_match(4))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

5   Fail
assert(isequal(.246094, round(1e6*coin_head_match(5))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

6   Fail
assert(isequal(.225586, round(1e6*coin_head_match(6))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

7   Fail
assert(isequal(.139950, round(1e6*coin_head_match(16))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

8   Fail
assert(isequal(.125371, round(1e6*coin_head_match(20))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

9   Fail
assert(isequal(.114567, round(1e6*coin_head_match(24))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

10   Fail
assert(~isequal(1,2))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

11   Fail
assert(isequal(.099347, round(1e6*coin_head_match(32))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)

12   Fail
assert(isequal(.070386, round(1e6*coin_head_match(64))/1e6))

Error in solution Line: 4 Column: 1 This statement is not inside any function. (It follows the END that terminates the definition of the function "coin_head_match".)