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!
- Mandelbrot Set
- Domino Shuffling Algorithm Animation
- Icosahedral Kaleidoscope
- Newton Fractal
- The E8 Pattern
- The Modular Group
- Generalized Penrose Tilings
- Wilson Algorithm Animation
- Reaction-Diffusion Simulation
- The 120-cell
Mandelbrot 集 [View Code]
多米诺洗牌算法 [View Code] [Arctic Cirlce Phenomena] [Wiki]
正二十面体万花筒 [View Code] [View Webm Animation]
Newton 迭代分形 [View Code] [Wiki]
Wilson 算法 [View Code] [Wiki] [Mike Bostock's Javascript Animation]
反应扩散方程模拟 [View Code] [Wiki] [View Webm Animation] [Pmneila's Javascript Animation]
Python libs:
numpy
, matplotlib
, scipy
, cairo
, palettable
, tqdm
, numba
, pyglet
, vapory
Softwares:
ImageMagick
, FFmpeg
, POV-Ray