HAND-HELD CALCULATOR ALGORITHMS FOR COASTAL 

 ENGINEERING (Second Series) 



hy 

 Todd L. Walton, Jr. 



I. INTRODUCTION 



The advent of the hand-held programable calculator has led to the develop- 

 ment of numerous programs in various fields of engineering and science. 

 Coastal engineering is no exception. This report provides algorithms for a 

 number of calculator programs useful in performing coastal engineering calcu- 

 lations, primarily in the area of wave transformations and wave generation. 



There are basically two types of hand-held programable calculators: those 

 that use algebraic logic, such as Texas Instruments, Algebraic Operating System 

 (AOS) notation, and those that use Reverse Polish Notation (RPN) , such as 

 Hewlett-Packard. The six programs presented herein are versions of RPN logic 

 suitable for use on HP41CV programable calculators with or without accessory 

 printer. Each program is documented, the assumptions are briefly described, 

 and references to more detailed presentations of the theory are given. This 

 same set of algorithms was programed for the TI-59 (AOS logic) and HP67 (RPN 

 logic) calculators in an earlier report with the same title (Walton, Birkemeier, 

 and Weggel, 1982) ^ 



Each of the RPN programs incorporates HP41 compatible print routines which 

 print and label all input and output parameters. The user only has to enter 

 the input parameters and the results are automatically computed and printed. 

 Since the printing routines increase program length by as much as 25 percent, 

 use of a magnetic card for permanent program storage is recommended. All 

 print steps are marked with asterisks and need not be entered if printing is 

 not desired. 



II. PROGRAMS 



Six programs (100, 101, 102, 103, 104, and 105) are presented in this 

 report. Program 100, a simple program that computes linear wave theory wave- 

 length for a given depth, is designed to be used as the basis for any program 

 that requires wavelength; in fact, it has been incorporated into programs 101, 

 102, and 105. 



Program 101 is another basic program which computes not only wavelength 

 but also a number of other linear wave theory parameters. This program forms 

 the basis for program 102 and can be adapted to other programs as well. 



^WALTON, T.L., BIRKEMEIER, W.A. , and WEGGEL, J.R., "Hand-Held Calculator 

 Algorithms for Coastal Engineering," CETA 82-1, U.S. Army, Corps of Engineers, 

 Coastal Engineering Research Center, Fort Belvoir, Va., Jan. 1982, 



