E-Code

Flat-plate boundary layer and drag — a TI-84 Plus CE program

By E-Code · updated

BLAYER is a TI-BASIC program for the TI-84 Plus CE. Reynolds numbers, laminar or turbulent boundary-layer thickness and local friction at a station, mixed-flow average drag coefficient and total drag on the plate.

What it asks for and what it shows

It asks for 6 values at its prompts. In the example below it shows RE X, DEL MM, CF X, CF AVG, DRAG N, LAMINAR AT X.

Example run

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

StepValue
You enter
Input 15
Input 20.2
Input 30.5
Input 415
Input 51.2
Input 60.5
The screen shows
RE X=66666.66667
DEL MM=3.872983346
CF X=0.002571660942
CF AVG=0.003252922378
DRAG N=0.01219845892
TextLAMINAR AT X

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 engineering programs · All TI-84 Plus CE programs