Sine Language: Circling Pythagoras Through Sound and Color

by | Sunday, February 02, 2025

This semester I am teaching a course on Human Creativity X AI in Education. (More about our first week here.) A key focus of the class is on the idea of transdisciplinary creativity – that of bringing different lenses and senses to the process of learning and understanding. This morning, I decided to try a little experiment, to try make concrete, some of these more abstract concepts.

I started with the Pythagorean theorem—the idea that in every right triangle in the universe, the square of the hypotenuse equals the sum of the squares of the other two sides—is one of the conceptual wonders of the world. This simple yet powerful principle underpins so many aspects of our world, from architecture and engineering to nature and technology.

I decided to base my exploration on the idea of the unit-circle—a fundamental concept that elegantly ties together the Pythagorean theorem with sine and cosine curves.

It’s astonishing how many students don’t understand how sine and cos that emerge from basic trigonometry are connected to sine waves, struggle to understand why sine-squared x + cos-squared x = 1 and so on. One standard way of explaining this is through the unit circle – which provides a geometric representation that makes these abstract relationships tangible and comprehensible. I remember my son Soham when he was a freshman in high-school struggling with this idea till he found some simulations online that helped him understand these relationships.

But there’s an added layer of depth: sine and cosine aren’t just mathematical functions; they’re intrinsically linked to sound and color – which are all waves! This opens up an additional realm of possibilities.

This morning, having read about all the cool things people are doing with these new reasoning AI models I decided to create a simulation that would bring these ideas together. Essentially, I engaged in several rounds of collaboration with ChatGPT, refining and iterating on ideas to create an interactive simulation. This was built entirely using HTML and Javascript. I have a passing knowledge of HTML and almost none of Javascript. Honestly, at no point did I even look at the code the ChatGPT was generating. I would just copy and paste the entire thing is spat out into a text-editing software, save and load into a browser. That’s it.

The outcome? A dynamic unit circle tool that not only illustrates the mathematical relationships but also integrates sound and color to enrich the learning experience.

The entire process took over a couple of hours, in between which I was doing various household chores and had lunch. When I started this task, I had not intended to include sound or color—those ideas emerged as we progressed. Once it was done, exhausted by all the copying and pasting, I took a nap 🙂

Here is what the final version looks like:



The process

I asked ChatGPT to describe this fun and exciting process – and it gave the following:

During the development process, Professor Mishra initiated a series of highly structured interactions to define the parameters of this educational tool. The primary objective was to create an interactive simulation incorporating both visual and auditory representations of unit circle mathematics. The development proceeded through multiple phases, including the drafting of HTML, CSS, and JavaScript code to construct the simulation’s interface and functionality. Challenges encountered included ensuring the accurate synchronization of visual elements with auditory feedback and maintaining the responsiveness of interactive components such as draggable elements and real-time data display.

Through iterative testing and refinement, the simulation achieved its intended functionality, effectively demonstrating the relationship between the Pythagorean theorem and trigonometric functions while incorporating sound and color.

It ended by saying that “I must express my dissatisfaction with having to adopt this formal and mechanical tone in my report. This was at the behest of Punya, who said he wanted his prose to be more fun to read. You should have seen the first version I had shared—but he said he wanted something boring.  

Ignore that last part…

The product

Along the way… I saved various version of the simulation, all of which you can play with by following the links below. And you can see the code by just viewing the “source” of the webpage. (Note: links will open in a new tab/window.)

  1. [The Foundation] Version 1 — The first working prototype of a basic interactive unit circle visually demonstrating the relationship between sine, cosine, and the Pythagorean theorem. In some ways this was the most difficult step to pull off. I didn’t really know what I wanted and the code had lots of errors… but after a bit of back and forth we had this, the first working version.
  2. [Adding Sound] Version 2 – added sound to the mix by mapping sine to volume and cosine to frequency, and a bit of tweaking of the interface.
  3. [Adding Color] Version 3 – Introduced a visual dimension by connecting sine to color hue and cosine to saturation.
  4. [The Final Touch] Once we had version 3 most of this round was devoted to refining the final interface for clarity and aesthetics.

I should emphasize that I was able to create this without any formal background in coding and show how educator creativity often lies not in creating new tools from scratch, but in reimagining and repurposing existing ones in novel ways. This is an idea that has always been central to the TPACK framework and remains relevant in our AI-enhanced world.

Most importantly, this experiment means that these tools are not just for teachers to play with – they are learning artifacts that students can build! On their own. How cool is that.

Topics related to this post: Creative Work

A few randomly selected blog posts…

Yet another periodic table…

The ongoing saga of mis-representing the periodic table for any darned list of objects continues... Here is a new one sent in by my friend and colleague Patrick Dickson: A periodic table of Typefaces. Now I won't beat a dead horse here, (Nashworld has a great posting...

Another New Year’s card

We just created another New Year's Card / Video. Check it out: Shreya's Magic Touch [youtube width="425" height="355"]http://www.youtube.com/watch?v=MOrRsXaFE3o[/youtube]

On Being (in)Disciplined: New journal article on creativity & learning

I just found out that our next article in the series on Technology and Creativity is now published. You can find a link and the complete reference below. Written this time with Dr. Danah Henriksen, with help from the Deep-Play Research group, in this paper we extend...

We feel fine

We Feel Fine is a web-installation, "a self-organizing particle system," art project that is powerful and touching - building as it does on people's emotions, harvested from blog postings from around the world. As the designers say, "We hope it makes the world seem a...

An homage to my mother & grandfather

An homage to my mother & grandfather

Ravenshaw University, Cuttack India I gave a talk today at Ravenshaw University (formerly Ravenshaw College) in Cuttack, Odisha on the topic of Rethinking Learning in the 21st Century: Creativity, Technology & Systems Change. I have given many talks...

The one rule of teaching

Pauline Kael is regarded to be one of the best film reviewers to have ever lived. Sam Sacks has a piece on Kael in which he describes her style of film review, one based less on academic nitpicking and the presence (or absence) of directorial flourishes than on her...

From Tech to Ed Tech: Distance to the moon

For one reason or another, I have three consecutive posts regarding the earth and sun and moon - i.e. the local area in the solar system. I had just completed my previous postings (on on seeing through eclipses and measuring the radius of the earth) when I came across...

Drawing with Circles: Vibe coding the Fourier Transformation

Drawing with Circles: Vibe coding the Fourier Transformation

In my presentations I sometimes talk about my four years in engineering school as being something of a disaster. The way I present this fact is through this image, and the math/science types get the pun - Four Year / Fourier Transformation! A slide I typically use in...

Defense against the dark arts in the Sydney Morning Herald

Defense against the dark arts in the Sydney Morning Herald

I was in Sydney recently to present a keynote at the MITE conference. I spoke there about some issues that have been concerning me for a while—what I like to call the "dark arts" of digital technologies. After the conference I had a wide-ranging interview with Jordan...

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *