A family of curves in the complex plane may be generated by the formula: for . The plotted curve displays fold rotational symmetry. Here's the Python code to generate the curve (run as python mystery_curve.pyk). This code is also available on my GitHub page. For …
Here is a short Python program to visualize the table of multiplication modulo . The integers and number the rows and columns of the image plot produced. and are supplied as command line arguments (if is not supplied, it defaults to ). This code is …
An article by Oliver and Soundararajan that has got a lot of attention in the last few days notes that there is a curious pattern in the distribution of the final digits of consecutive prime numbers. Prime numbers larger than 5 must end in 1, …
The Lorenz system of coupled, ordinary, first-order differential equations have chaotic solutions for certain parameter values , and and initial conditions, , and . The following program plots the Lorenz attractor (the values of , and as a parametric function of time) on a Matplotlib …
This article demonstrates the use of the Penrose tiling class described in the previous blog post. The code described in this post is available under the GPL licence on GitHub.
This blog post introduces Penrose tiling, a type of aperiodic tiling discovered by mathematician Roger Penrose in the 1970s. Penrose tilings are constructed using specific shapes (tiles) that can cover a plane without repeating patterns. The post focuses on the P3 tiling scheme, which uses …