E-Code

Harmonics: string, open pipe, closed pipe — a TI-84 Plus CE program

By E-Code · updated

WAVES is a TI-BASIC program for the TI-84 Plus CE. Wave speed and the first five resonant frequencies of a string fixed at both ends (from tension and linear density), a pipe open at both ends, or a pipe closed at one end — odd harmonics only, numbered F1, F3, F5, F7, F9 (fn = nv/4L).

What it asks for and what it shows

It asks for 3 values at its prompts, after you pick option 1 from its menu. In the example below it shows WAVE V, F1, F2, F3, F4, F5.

Example run

One of its oracle test cases: “guitar string”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Menuoption 1
Input 10.65
Input 270
Input 30.00125
The screen shows
WAVE V=236.6431913
F1=182.0332241
F2=364.0664482
F3=546.0996723
F4=728.1328964
F5=910.1661205

How it's checked

4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 27 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE physics programs · All TI-84 Plus CE programs