Cody

Solution 887906

Submitted on 9 May 2016 by James
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   Pass
n = 0; A_correct = 1; assert(abs(fractal_circles(n)-A_correct)<0.0001);

2   Pass
n = 1; A_correct = 8/9; assert(abs(fractal_circles(n)-A_correct)<0.0001);

A = 0.8889

3   Pass
n = 2; A_correct = 68/81; assert(abs(fractal_circles(n)-A_correct)<0.0001);

A = 0.8395

4   Pass
n = 3; A_correct = 67/81; assert(abs(fractal_circles(n)-A_correct)<0.0001);

A = 0.8272

5   Pass
n = 4; A_correct = 5411/6561; assert(abs(fractal_circles(n)-A_correct)<0.0001);

A = 0.8247

6   Pass
n = 5; A_correct = 48674/59049; assert(abs(fractal_circles(n)-A_correct)<0.0001);

A = 0.8243