A Tour in the Wonderland of Math with Python

A collection of python scripts that aimed at drawing beautiful figures or animating interesting algorithms in mathematics.

This repository will be always under construction as there are too many interesting things in math that can be shown by code.

Code Health License: MIT PyPI

Contents


Mandelbrot Set

Mandelbrot 集 [View Code]



[[Back to Top](#contents)]

Domino Shuffling Algorithm Animation

多米诺洗牌算法 [View Code] [View Gif Animation] [Wiki]



[[Back to Top](#contents)]

Icosahedral Kaleidoscope

正二十面体万花筒 [View Code] [View Webm Animation]



[[Back to Top](#contents)]

Newton Fractal

Newton 迭代分形 [View Code] [Wiki]



[[Back to Top](#contents)]

The E8 Pattern

李代数 E8 的根系 [View Code] [Wiki]



[[Back to Top](#contents)]

The Modular Group

模群的基本域 [View Code] [Wiki]



[[Back to Top](#contents)]

Beauty of Roots

Littlewood 多项式的根 [View Code] [Origin]



[[Back to Top](#contents)]

Generalized Penrose Tilings

彭罗斯铺砌 [View Code] [Wiki]



[[Back to Top](#contents)]

Wilson Algorithm Animation

Wilson 算法 [View Code] [Wiki] [Mike Bostock's Javascript Animation]



[Back to Top]

Dependencies

Python libs:

  • numpy
  • matplotlib
  • scipy
  • cairo
  • palettable
  • tqdm
  • numba
  • pyglet

Softwares:

  • ImageMagick
  • FFmpeg
  • POV-Ray