A Tour in the Wonderland of Math with Python
A collection of python scripts for drawing beautiful figures or animating interesting algorithms in mathematics.
This repository will be always under construction since there are too many interesting things in math that can be shown by code. Pull requests, issues, questions, and suggestions are all welcomed!
Contents
Mandelbrot Set
Mandelbrot 集 [View Code]
Julia Set
Julia 集 [View Code]
Domino Shuffling Algorithm Animation
多米诺洗牌算法 [Code] [Doc]
Icosahedral Kaleidoscope
Newton Fractal
Newton 迭代分形 [View Code] [Wiki]
The E8 Pattern
李代数 E8 的根系 [View Code] [Wiki]
The Modular Group
Generalized Penrose Tilings
Wilson's Uniform Spanning Tree Algorithm Animation
Wilson 一致生成树算法 [Code] [Doc]
Reaction-Diffusion Simulation
反应扩散方程模拟 [Code] [Doc] [Video]
The 120-cell
Lorenz Attractor Animation
2D Hyperbolic Tilings
Poincare 双曲铺砌 [View Code]
3D Hyperbolic Honeycombs
Dependencies
Python libs:
$ pip install -r requirements.txt
numpy, matplotlib, scipy, cairo, palettable, tqdm, numba, pyglet, vapory
Softwares:
ImageMagick, FFmpeg, POV-Ray