Skip to content

Render beautiful images and animate interesting algorithms in mathematics with Python. Fractals, Penrose tilings, reaction-diffusion, Wilson's uniform spanning tree algorithm, domino shuffling algorithm, coupling from the past, 4D polytopes, Mobius transformations, hyperbolic tilings. www.pywonderland.com.

License

Notifications You must be signed in to change notification settings

forforrest/pywonderland

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Tour in the Wonderland of Math with Python

License: MIT

A collection of python scripts for drawing beautiful figures or animating interesting algorithms in mathematics.

About this repo

Please visit the website for this repository to see how to use these scripts and get more information of the math behind them.

I'm building the docs so that there will be more usage & math explanations for each program.

The history commits are deleted (sorry for this) but will not be deleted any more.

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!

Warning: I'll not maintain support for python<=2.7 any more, please run the code with python>=3.

Contents


Mandelbrot Set

[Code] [Doc]



[Back to Top]


Julia Set

[Code] [Doc]



[Back to Top]


Newton Fractal

[Code] [Doc]



[Back to Top]


Icosahedral Kaleidoscope

[Code] [Doc]



[Back to Top]


Fractal Tree

[Code]



[Back to Top]


Reaction-Diffusion Simulation

[Code] [Doc] [Pmneila's Javascript Animation]



[Back to Top]


The E8 Pattern

[Code] [Doc] [Wiki]



[Back to Top]


The Modular Group

[Code] [Doc] [Wiki]



[Back to Top]


Generalized Penrose Tilings

[Code] [Doc]



[Back to Top]


Domino Shuffling Algorithm Animation

[Code][Doc]


[Back to Top]


Wilson's Uniform Spanning Tree Algorithm Animation

[Code] [Doc] [Mike Bostock's Javascript Animation]


[Back to Top]


Coupling From The Past And Lozenge Tilings

[Code] [Doc]


[Back to Top]


Todd-Coxeter Algorithm And 4D Polytopes

[Code] [Doc]


[Back to Top]


Möbius Transformations In Hyperbolic 3-Space

[Code] [Doc]


[Back to Top]


Programs to come:

  • Fractals with orbit trap
  • 2D hyperbolic tilings (Escher's circle limit)
  • 3D hyperbolic honeycombs
  • Hopcroft's minimization algorithm

Dependencies

Python libs: pip install -r requirements.txt.

Softwares:

  • ImageMagick
  • FFmpeg
  • POV-Ray

About

Render beautiful images and animate interesting algorithms in mathematics with Python. Fractals, Penrose tilings, reaction-diffusion, Wilson's uniform spanning tree algorithm, domino shuffling algorithm, coupling from the past, 4D polytopes, Mobius transformations, hyperbolic tilings. www.pywonderland.com.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.7%
  • POV-Ray SDL 27.4%
  • GLSL 6.9%