E-Code

Pipe network: series + parallel — a TI-84 Plus CE program

By E-Code · updated

PIPEPAR is a TI-BASIC program for the TI-84 Plus CE. One pipe in series with two in parallel, common friction factor: how the flow splits, velocities, and the parallel and total head loss.

What it asks for and what it shows

It asks for 8 values at its prompts. In the example below it shows QB L/S, QC L/S, VB M/S, VC M/S, H PAR M, H TOT M.

Example run

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

StepValue
You enter
Input 160
Input 20.02
Input 3150
Input 4200
Input 5100
Input 6300
Input 780
Input 8250
The screen shows
QB L/S=36.87611663
QC L/S=23.12388337
VB M/S=4.695212994
VC M/S=4.600350428
H PAR M=67.41597879
H TOT M=83.08447912

How it's checked

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

How E-Code checks every program

Run it or put it on your calculator

Related programs

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