Moiré GIF: by Opal

My daughter started playing with moiré in procreate after I fiddled with it in a previous post. You know we breathe math in our home. She wanted to share:

Parallel to a Parabola

I received a question today about what curve is parallel to a parabola. I sat for a minute and realized that it wasn’t another parabola. It required parametric equations (at least if you wanted to keep it simple). That of course lead to code:

See the Pen jOqzMJb by Sophia (@fractalkitty) on CodePen.

The parametric equations for the parabola are:

  • x = 2at
  • y = at2

The parallel curve equations are:

  • x = 2at+ct/sqrt(1+t2)
  • y = at2 – c/sqrt(1+t2)

Hex-a-Sierpinski

So I doodled and was pleasantly surprised when Sierpinski-like triangles formed. I am sure that a million people have discovered this before me, but I felt like I found a magic portal.

And that lead to coding (of which is currently a mess, and I will post later).

And one more version:

SA8: Odd and Even

This Scripting Algebra (SA) activity uses even and odd polynomials to create generative art in p5.js.

This activity assumes that the skills from SA1-SA7 were introduced (if-else, logical operators, random(), text(), rect(), variables, loop, pow, for, functions, translate etc.). This activity will introduce modulo.

In this activity, learners can either create their own project for even and odd functions, or they can modify and learn with code examples below.

Save work often and have fun (or just start over if you break it).

Odd Picture

  • Analyze the code below by changing one value at a time.
  • This example is y = ax3, what is another example of an odd function?
    • Can it be implemented?
  • Can some of this code be randomized?
  • Play with the coefficient code to create new animations and art.
  • Example Code at p5.js.

See the Pen OddPicture by Sophia (@fractalkitty) on CodePen.

Get Even

  • This example is similar to the odd function above, but what had to change?
  • What are other even functions?
    • Can they be implemented?
  • One polynomial is calculated and then 4 different ones are plotted by modifying the x value.
    • What would this look like algebraically?
  • Example Code at p5.js.

See the Pen GetEven by Sophia (@fractalkitty) on CodePen.

Mixed Rotate

  • Draw random even and odd functions.
  • Change color based on even/odd:
    • Modulo (remainders can be used for this).
  • Rotate the canvas.
  • Example Code at p5.js.

See the Pen abNJOKK by Sophia (@fractalkitty) on CodePen.

Example Concepts: even/odd functions, function operations, translation, variables, coordinate planes, ordered pairs, conditions, loops, random numbers, functions, etc..


Like what you see?