E-Code

Oblique central impact — a TI-84 Plus CE program

By E-Code · updated

IMPACT is a TI-BASIC program for the TI-84 Plus CE. Two smooth bodies with a coefficient of restitution: normal velocities after impact, speeds, kinetic energy lost. Momentum and the restitution relation are enforced.

What it asks for and what it shows

It asks for 7 values at its prompts. In the example below it shows V1N NEW, V2N NEW, SPEED1, SPEED2, KE LOST, LOST %.

Example run

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

StepValue
You enter
Input 12
Input 23
Input 35
Input 41
Input 5-1
Input 62
Input 70.6
The screen shows
V1N NEW=-0.76
V2N NEW=2.84
SPEED1=1.256025477
SPEED2=3.473557254
KE LOST=13.824
LOST %=41.26567164

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