## Learn to Code through Math #learntocodethroughmath

The #learntocodethroughmath project is something that I created sort of by accident. I see the audience for this project as someone who is somewhat comfortable with using Desmos to create math-artsy stuff with lists, functions, and parametric functions and is interested in learning how to code using Processing. So yea, pretty narrow. But hopefully fruitful […]

## Visualization of a Function Through Time

(This post demonstrates the math behind the creation of some unusual math art. I got the idea from this tumblr post which I don’t even think works like this. But it was the inspiration behind the pictures.) Take this function: f(x) = x^2 + a*cos(ax). When you take values of a between 0 and 8 and […]

## Plots of the Exponential Function over the Complex Plane

I was inspired by this tumblr post, and this wikimedia page to make some pretty pictures of the exponential function over the complex plane. Go there to read in more detail how the images were created, including how the colors were created. Code is found here. Hi definition images are found here. Update: Here’s what […]

## Tracking Venus and Earth over 8 years

I came about this tweet: https://twitter.com/SciencePorn/status/599718978307620864/ It reminded me strongly of the waning moon and linear mod art projects that I’ve been playing with. For instance, here’s a screenshot from the waning moon (specifically y = 56x) A quick intro: the picture above was made by taking 360 points around a circle, and shifting them […]

## Linear Modulus Art

I saw this fantastic webpage a couple of months back. Tons of fun. I took that idea and made a gif for my weird art Tumblr, Recursive Processing.   Here’s the processing.org code and the live (and smoother) version, and here’s the more fun version that is interactive based on the mouse position (some interesting polar math is […]

## The Mandelbrot Set Viewed through Precalculus

I’ve given this presentation in November 2014 at AMTNYS in Syracuse, and in April 2015 at NCTM in Boston. I’ll be giving the presentation in May 2015 at the NY Master Teacher Conference, and in July 2015 at Twitter Math Camp in Claremont CA.  Drive Why use the Mandelbrot fractal to get the students to […]

## Mandelbrot Fractal v2

I had so much fun with the original Mandelbrot program that I decided to see if I could improve it. I was amazed by how easily I was able to generate a fractal picture that looked exactly like other pictures online. I didn’t look at anyone else’s code, just went down the path and the amazing […]

## Mandelbrot Fractal

I was inspired by a My Favorite presentation from a student on the Mandelbrot fractal. I played around for a half hour at school without a ton of success, but I sorted out the sticking points on the way home, and finished it up tonight. Amazingly simple (the code may not look simple, but it’s […]

## Chaos Game v2

I prepared a small demonstration of the Chaos game for some math teachers. First we used transparencies, markers, dice, and rulers, but humans are mistake-prone and slow. To The Computer! I decided to experiment with the rules of the game to see where it’d go. Human Error What happens when you bring in a random amount […]

## Buffon’s Needles simulation in Processing

Buffon’s Needle is a famous way to (slowly) estimate . Here’s a processing.org program to calculate (to keep the math-hipster hatred of -day at a critical point and concave up). Link to live simulation and code. All variables are easy to change, size of window, length of needle, spacing of lines, etc. Neat program to write. […]