Saturday, November 2, 2024

A STEM Project: Coding a SIne/Sinusoidal Wave In TurtleStitch

The pattern above is similar to a Sashiko design called Hokusai.
This pattern was created in TurtleStitch using different sine/sinusoidal wave orientations.

 
The difference between a sine wave and a sinusoidal wave is a sine wave oscillates in a smooth repetitive pattern centered at zero across the x-axis, with a regular phase and amplitude.
The sine wave equation is y = sin(x)

A sinusoidal wave has a general shape of a sine wave but it could either follow a sine or cosine function or any shifted version of these functions. The sinusoidal equation is y = a sin(Fx - p) + d

In the following TurtleStitch program, I created a program where you can compare different types of sine/sinusoidal waves.

Using the sinusoidal equation, y = a sin(Fx - p) + d, I created the Sashiko design called Hokusai.

Here is a link to my Hokusai TurtleStitch program.