Discussion about this post

User's avatar
lcamtuf's avatar

This also ties in to the bit-twiddling construction method of the Hadamard matrix, which is important to the construction of the (very unimportant) square-wave frequency domains:

https://lcamtuf.substack.com/p/is-the-frequency-domain-a-real-place

To generate the Hadamard matrix, we count the number of bits set in x & y and color a cell depending on whether the count is even or odd.

This might sound puzzling, but the conceptual model is that for the Sierpiński triangle, we're ORing the bottom-right-corner bit-set patterns; and for Hadamard, we're XORing them.

Expand full comment
Wyrd Smythe's avatar

Recently, I finally got around to a Python implementation of an elementary cellular automaton, because I wanted to explore the infamous "Rule 110". I was surprised to find that many of the rules generate Sierpiński triangles, both as equilateral triangles and right-angle triangle such as the bit trick generates. If interested, here's my catalog of the outputs of all 256 rules:

https://substack.com/profile/195807185-wyrd-smythe/note/c-116279035

Expand full comment
3 more comments...

No posts