/pywonderland

Render beautiful images or animate interesting algorithms in mathematics with Python.

Primary LanguagePythonMIT LicenseMIT

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!

Gitter chat License: MIT PyPI

Contents


Mandelbrot Set

Mandelbrot 集 [Code]



[Back to Top]


Julia Set

Julia 集 [Code]



[Back to Top]


Domino Shuffling Algorithm Animation

多米诺洗牌算法 [Code] [Doc]



[Back to Top]


Icosahedral Kaleidoscope

正二十面体万花筒 [Code] [Video]



[Back to Top]


Newton Fractal

Newton 迭代分形 [Code] [Wiki]



[Back to Top]


The E8 Pattern

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



[Back to Top]


The Modular Group

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



[Back to Top]


Generalized Penrose Tilings

彭罗斯铺砌 [Code] [Doc]



[Back to Top]


Wilson's Uniform Spanning Tree Algorithm Animation

Wilson 一致生成树算法 [Code] [Doc]


[Back to Top]


Reaction-Diffusion Simulation

反应扩散方程模拟 [Code] [Doc] [Video] [Video with Text]



[Back to Top]


The 120-cell

120 胞腔 [Code][Wiki]



[Back to Top]


Lorenz Attractor Animation

洛伦兹吸引子动画 [Code][Video]



[Back to Top]


2D Hyperbolic Tilings

Poincare 双曲铺砌 [Code]



[Back to Top]


3D Hyperbolic Honeycombs

双曲蜂巢 [Code]



[Back to Top]


Dependencies

Python libs:

numpy, matplotlib, scipy, cairo, palettable, tqdm, numba, pyglet, vapory

Softwares:

ImageMagick, FFmpeg, POV-Ray