APPENDIX 



CALCULATOR PROGRAM FOR THE BOUNDS OF THE SHOAL ZONE 



A calculator program executing the Table 1 procedure is documented on the 

 following four pages. Written for the Hewlett-Packard HP-67 Programmable Pocket 

 Calculator, this program uses metric or U.S. customary units, 224 program steps, 

 25 storage registers, and RPN logic. The program could be translated for use 

 with calculators having other logic systems and similar features and capacities. 



The program incorporates the basic relationships in equations (1) and (7), 

 the needed identities for hyperbolic functions and for linear waves, and an 

 effective interative root-finding routine. The parameters to be specified for 

 the calculations are H , o, Tg, D, y', and g. For quartz sand, y' ~ l-^ iii 

 seawater and y' - 1-65 in freshwater, with slight variations with water tem- 

 perature and, of course, salinity (Komar, 1976). For most sites, especially 

 at sea level in temperate latitudes, the value of g may be taken to be 32.2 

 feet (981 centimeters) per second squared. 



19 



