Geometrick T-shirts

I had a T-shirt with a certain pattern that was fading out. I didn’t know at the time that this had a name, and later learned it was a geometrical pattern that had certain interesting connections. I won’t link to that here, but you can find it by searching for “Metatron’s cube” online.

Re-creating this geometrical pattern became a fun exercise within Wolfram Mathematica (which is such a useful and under-rated tool, btw, I can’t recommend it enough for anyone with the slightest interest in doodling, tinkering, learning, simulating …).

Nothing fancy, just a bunch of circles, points, lines, triangles. Good old-fashioned geometry.

I was able to experiment with a few different designs until I settled on one I liked. Mathematica allowed me to export what I had as a regular PNG file.

I still had to do some post-processing — to be honest, I’m sure there are tools within Mathematica for this, but I just used a photo-editing tool on my laptop to remove all the black and make the background transparent.

I had to pick a website to use for this, since there are so many options today. I went with something that I knew from many years ago, Zazzle, though again, I’m sure there’s something better right now.

Here is the finished product:

Here’s an example of rendering it within Wolfram Mathematica:

“Metatron’s Cube”

Polar Primes

This “five minutes of Wolfram Language” exercise can be surprisingly therapeutic 🙂

I had come across something interesting today:

However, I then wanted to try it out on my own.

These days, the commonly available frameworks/libraries make it too hard to just up-and-sketch-something.

… which is where WolframLanguage comes in.

I was able to make a simple notebook for this in five minutes:

Using WolframLanguage to see the spiral pattern in which primes show up when plotted in polar cp-ordinates

… and have the satisfaction of seeing that yes, it is indeed true.

Seeing things on your own, making things on your own, is a really nice feeling.

Wolfram Language “dashboards”

Playing around with Mathematica for a few minutes.

Or rather, using it to play around.

I’m trying to figure out the “least B.S.” portions of “web3/defi/whatever”. So far, a limited goal is to follow along a couple of “stable, publicly used and usable” blockchains, and I picked Tezos and Cardano for this.

I built some probing views for each, as cloud notebooks:

Transactions within the last 20 Tezos blocks as of around 5:09pm on Mar 13, 2022
Transactions within the last 20 Cardano blocks as of around 5:09pm on Mar 13, 2022

Very elementary stuff, but it took a few minutes, and really shows how Wolfram (Mathematica) is a really great “computational explorer” right now.

P.S. eyeballing the two, at a very subjective, no-flame-war, just-this-instance level, Tezos seems to be stably handling about 2x transaction throughput compared to Cardano.

Advent-of-code 2021

Using Wolfram Mathematica for this is more satisfying than it should be

It was shockingly easy to do all this.

  • REPL/Notebook glory with fast-n-quick editing and modification
  • easy switching between text and code cells
  • easy prototyping
  • easy plotting

I’m sure anything that requires “running systems” would be a bad fit, but most cases where you’d think “I need a real programming language here”, Wolfram Language is more than adequate.

“Digits of Pi”

Saw a recent post on how “digits of Pi add up to 666” and decided to investigate.

These days I’m finding Mathematica super-useful for stuff like this, so:

That does NOT add up.

But this does:

Okay, this is stretching things a bit. It certainly sounds fun to say “the first 144 digits of Pi add up to 666” and then go on to show how 144 is a cool number (which it is, so is 1440).

But it’s less fun to say “the first 144 digits of Pi except for the first one add up to 666″, which is the truth here.

Prime Palindromes

Came across this on the “Programming Praxis” blog

I thought I’d use something other than a “typical” programming language, by which I mean not “an esoteric language”, but rather something that’s not thought of as a programming language: Mathematica.

This is the entirety of the solution, a one-liner that (using Timing), also shows how long it took.

The above is an image, but an online (read-only) notebook containing this evaluation is here at Wolfram Cloud.

Ten years ago, I’d be on the side of the fence saying “but that’s cheating“, or “hey, that’s not really programming“, but today my attitude is more of “use the right tool for the job“.

And Mathematica is a mighty fine tool !!