This spot of Perl code calculates various mathematical paths through a 2-D X,Y plane.

13 14 3 12 ... 15 4 1 2 11 28 16 5 6 7 8 9 10 27 17 18 19 20 21 22 23 24 25 26

`Math-PlanePath`

is
free software (free
as in freedom), published under the terms of the
GNU General Public
License (v3 or higher).

Download version 119 here, either just
the `.pm`

file, the full source here or
from CPAN, or a
Debian package here or from my repo.

`Math-PlanePath-119.tar.gz`

(1268k, and sig)

`libmath-planepath-perl_119-0.1_all.deb`

(1212k, and sig)

And separate Math-PlanePath-Toothpick with toothpick and more cellular patterns (version 17)

`Math-PlanePath-Toothpick-17.tar.gz`

(168k, and sig)

`libmath-planepath-toothpick-perl_17-0.1_all.deb`

(120k, and sig)

The sig files are Gnu PG ascii armoured
signatures generated from my key. There's a
`SIGNATURE`

file inside the `.tar.gz`

for
`cpansign`

too. Older sources can be found
at backpan.

There's no drawing in Math-PlanePath, just coordinate calculations (see math-image for drawing), but here's some samples. Click each for its section in the gallery (PNG format images, about 334k total).

- Square numbering of Ulam's spiral
- Hexagonal spirals
- Pentagonal, heptagonal, anvil and octagram spirals
- Diamond spiral and rings
- Triangle spirals
- Diagonals, corner, and staircases
- Pyramid side and rows, M peaks
- Cellular automaton patterns
- Infinite knight's tour and Cretan labyrinth
- Greek Key motif
- Multi-arm spirals
- Peano, Hilbert, Z-order, Gray code
- Wunderlich serpentine and meander, Beta-Omega, AR2W2, Kochel curves
- Dekking and Cinco curves
- Imaginary base, cubic base, corner replicate, square replicate
- L tiling, digit groups
- Fibonacci word fractal
- Vogel's sunflower floret
- Sacks' quadratic spiral
- Spiral of Theodorus and Archimedean Chords
- Pixellated, filled, and circular rings
- Flowsnake and Gosper islands
- Quintet
- Koch curve and snowflakes
- Quadric curve and islands
- Sierpinski triangle and arrowhead
- Sierpinski curve and H-indexing
- Dragon paper-folding and alternate paper folding, and their midpoints
- Terdragon curve, rounded, and midpoints
- R5dragon curve and midpoints
- C-Curve
- Complex i+/-r (including twindragon i-1), and revolving i+1
- Points by hypotenuse distance square or triangular
- Pythagorean triples tree
- Rationals diagonal, factors, GCD, Cfrac digits
- Rationals, fractions, and Chan trees
- Coprime and divisible columns
- Ulam-Warburton cellular
- Wythoff and power arrays

And in the separate Math-PlanePath-Toothpick distribution.

See `math-image`

to display
various values on these these paths.

This page Copyright 2010, 2011, 2012, 2013, 2014, 2015 Kevin Ryde, except for the GPLv3 logo which is Copyright Free Software Foundation and used here in accordance with its terms.

Imagine this page spiralling.

(Back to the sitemap.)