Giter Club home page Giter Club logo

isaaclyautey / pywonderland-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neozhaoliang/pywonderland

0.0 1.0 0.0 1.45 MB

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

License: MIT License

Python 64.16% POV-Ray SDL 29.73% GLSL 6.11%

pywonderland-1's Introduction

A Tour in the Wonderland of Math with Python

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

About this repo

Math is beautiful, but to truly enjoy it one has to walk a long and painful way before he could stand on the hill and see the full landscape. I hope this repo could help those people without a strong math background get some intuitive understanding of the beauty of math. The topics are chosen largely due to my personal taste:

  1. They should produce appealing results.
  2. There should be some non-trivial math behind them.
  3. The code should be as simple as possible.

I'll use only popular python libs and build all math stuff from the gound. (sage, sympy and mathemetica are not used here)

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

I'm still 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.

Featured images

  1. Reaction-Diffusion Simulation

  2. Polytopes and Todd-Coxeter Algorithm

  3. Wilson's Uniform Spanning Tree Algorithm Animation

  4. Aperiodic Rhombus Tilings

Programs to come:

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

Dependencies

Python libs: pip install -r requirements.txt.

Softwares:

  • ImageMagick
  • FFmpeg
  • POV-Ray

License

see the LICENSE file.

pywonderland-1's People

Contributors

neozhaoliang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.