E-Code

Hydrostatic force on a gate — a TI-84 Plus CE program

By E-Code · updated

HYDROST is a TI-BASIC program for the TI-84 Plus CE. Rectangular gate at any incline: resultant force, centroid depth, centre of pressure measured from the top edge, and the moment about the top hinge.

What it asks for and what it shows

It asks for 5 values at its prompts. In the example below it shows F KN, CG M, CP TOP, M HINGE.

Example run

One of its oracle test cases: “vertical gate”. 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 31.5
Input 490
Input 5998
The screen shows
F KN=146.8557
CG M=2.5
CP TOP=1.133333333
M HINGE=166.43646

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 21 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