E-Code

Block sliding onto a spring — a TI-84 Plus CE program

By E-Code · updated

SPRDROP is a TI-BASIC program for the TI-84 Plus CE. Work-energy on an incline (or a vertical drop) with friction: maximum spring compression, speed at contact, peak spring force and acceleration, dynamic factor.

What it asks for and what it shows

It asks for 5 values at its prompts. In the example below it shows X MAX M, V CONT, X STAT, F SPR N, A PEAK, DYN FAC.

Example run

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

StepValue
You enter
Input 12
Input 2800
Input 30.5
Input 490
Input 50
The screen shows
X MAX M=0.1830383295
V CONT=3.132091953
X STAT=0.024525
F SPR N=146.4306636
A PEAK=63.40533179
DYN FAC=7.463336574

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