E-Code

Titration curve: pH for a list of volumes — a TI-89 Titanium program

By E-Code · updated

TITR89 is a TI-89 BASIC program for the TI-89 Titanium. Weak acid titrated with NaOH: type the acid's Ka, molarity and volume, the base molarity and a LIST of base volumes; get the pH at every volume (exact charge balance, solved by your own Define'd function) and the equivalence volume.

What it asks for and what it shows

It asks for 5 values at its prompts. In the example below it shows VEQ ML, 0 ML PH, 12.5 ML PH, 25 ML PH, 30 ML PH.

Example run

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

StepValue
You enter
Input 11.8E-5
Input 20.1
Input 325
Input 40.1
Input 5{0,12.5,25,30}
The screen shows
VEQ ML=25
0 ML PH=2.88
12.5 ML PH=4.75
25 ML PH=8.72
30 ML PH=11.96

How it's checked

3 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 18 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-89 Titanium chemistry programs · All TI-89 Titanium programs