With commas:

Without commas:

Skip to content
# Expanded

# Foiled by a Foil

# MoirĂ© GIF: by Opal

# Parallel to a Parabola

# Menger Sponge Cat in Space

# Hex-a-Sierpinski

# No 5-second rule…

# SA8: Odd and Even

### Odd Picture

### Get Even

### Mixed Rotate

## Like what you see?

# Yay! This blog is in a blog post on the AMS Blog of Math Blogs!

# Coffee = Donut

With commas:

Without commas:

I couldn’t resist this GIF for my algebra students. Foiling can be such fun!

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:

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 = at
^{2}

The parallel curve equations are:

- x = 2at+ct/sqrt(1+t
^{2}) - y = at
^{2}– c/sqrt(1+t^{2})

High res:

Low res:

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:

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).

- Analyze the code below by changing one value at a time.
- This example is y = ax
^{3}, 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.

- 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.

- 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..

Seriously though, I am honored and humbled by the opportunity to share all the hard work that has gone into creating the materials on this website. I hope to continue growing, learning, and sharing with you all.

I know it is an obvious one, but it’s what I doodled tonight…