Littlewood Fractals

18 thoughts
last posted Dec. 22, 2012, 4:54 a.m.

3 earlier thoughts

0

With itertools.product it's easy to generate all the Littlewood coefficients:

for coefficients in product(*([[-1, 1]] * DEGREE)):

and then with numpy.roots it's easy to generate all the roots for that polynomial:

    for root in roots((1,) + coefficients):

14 later thoughts