diff --git a/README.md b/README.md index 5b5d42e..d216581 100644 --- a/README.md +++ b/README.md @@ -17,146 +17,20 @@ ## About this repo -Math is beautiful, but to truly enjoy it one has to walk a long and painful way learning lots of boring stuff before he could see the full landscape. I hope this repo could help those people without a strong math background get some intuitive understanding of the beauty and elegance of math. The topics are chosen largely due to my personal taste: +The purpose of this project is to show the beauty of math with python. It consists of several independent sub-projects. The topics are chosen largely due to my personal taste: 1. They must produce appealing results. 2. There must 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 by hand (tools like `sage`, `sympy`, `mathemetica` will not be used here). +I'll use only popular python libs and build all math stuff by hand (tools like `sage`, `sympy`, `mathemetica` will not be used here). Also I only maintain the code for `python >= 3.5`. The website for the docs is still under construction and will be released soon. -**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! - -**NB:** I will only maintain the code for `python >= 3.5`. - - -## Examples - -Here is *a very small portion* of examples that this project can do: - -+ [Wilson's uniform spanning tree algorithm animation](./src/gifmaze/example_maze_animations.py) - -
- -+ [Hilbert's curve animation](./src/gifmaze/example_hilbert_curve.py) - - - -+ [Domino shuffling algorithm animation](./src/aztec/run_domino_shuffling_animation.py) - - - -+ [Raymarching fractals](./src/fractal3d/fractal3d.py) - - - - - - - -+ [Hopf fibration](./src/hopf/hopf_fibration.ipynb) - - - -+ [Aperiodic tilings](./src/aperiodic-tilings) - - - - - - -+ [Langton's ant animation](./src/gifmaze/example_langton_ant.py) - - - - -+ [Reaction-diffusion simulation](./src/grayscott/main.py) - - - - - -+ [Uniform polytopes](./src/polytopes) - - - - - - - - - - -+ [Uniform tilings](./src/uniform-tilings/example_uniform_tilings_2d.py) - - - - - - - - - - - - - - - - - - - -+ [Möbius transformations in hyperbolic 3-space](./src/mobius/Mobius_in_H3space.py) +A few examples: diff --git a/gallery.png b/gallery.png new file mode 100644 index 0000000..c741ce8 Binary files /dev/null and b/gallery.png differ diff --git a/src/polytopes/models.py b/src/polytopes/models.py index 1c1da12..886f99e 100644 --- a/src/polytopes/models.py +++ b/src/polytopes/models.py @@ -306,9 +306,8 @@ class Snub24Cell(Polychora): def __init__(self): coxeter_diagram = (3, 2, 2, 3, 3, 2) - coxeter_matrix = helpers.make_symmetry_matrix(coxeter_diagram) - mirrors = helpers.get_mirrors(coxeter_diagram) - super().__init__(coxeter_matrix, mirrors, (1, 1, 1, 1), extra_relations=()) + active = (1, 1, 1, 1) + super().__init__(coxeter_diagram, active, extra_relations=()) self.symmetry_gens = tuple(range(6)) self.symmetry_rels = ((0,) * 3, (2,) * 3, (4,) * 3, (0, 2) * 2, (0, 4) * 2, (3, 4) * 2,