Page 273 - Compact Numerical Methods For Computers
P. 273
260 Compact numerical methods for computers
The following support codes are needed to execute the driver programs:
CALCEPS.PAS --to compute the machine precision for the Turbo Pascal com-
puting environment in which the program is compiled
CONSTYPE.DEF ---a set of constant and type specifications common to the codes
CUBEFN.PAS ---a cubic test function of one variable with minimum at 0.81650
FNMIN.PAS ---a main program to run function minimisation procedures
GENEVRES.PAS ---residuals of a generalised eigenvalue problem
GETOBSN.PAS ---a procedure to read a single observation for several variables
(one row of a data matrix)
HTANFN.PAS ---the hyperbolic tangent, example 13.2
JJACF.PAS ---Jaffrelot’s autocorrelation problem, example 14.1
MATCOPY.PAS ---to copy a matrix
MATMUL.PAS ---to multiply two matrices
MATRIXIN.PAS ---to create or read in matrices
PSVDRES.PAS ---to print singular-value decomposition results
QUADFN.PAS ---real valued test function of x for [1D] minimisation and root-
finding
RAYQUO.PAS ---to compute the Rayleigh quotient for a generalised eigenvalue
problem
RESIDS.PAS ---to compute residuals for linear equations and least-squares
problems
ROSEN.PAS ---to set up and compute function and derivative information for
the Rosenbrock banana-shaped valley test problem
SPENDFN.PAS ---the expenditure example, illustrated in example 12.5 and
example 13.1
STARTUP.PAS ---code to read the names of and open console image and/or
console control files for driver programs. This common code
segment is not a complete procedure, so cannot be included in
Turbo Pascal 5.0 programs.
SVDTST.PAS ---to compute various tests of a singular-value decomposition
TDSTAMP.PAS ---to provide a time and date stamp for output (files). This code
makes calls to the operating system and is useful only for MS-
DOS computing environments. In Turbo Pascal 5.0, there are
utility functions which avoid the DOS call.
VECTORIN.PAS ---to create or read in a vector
The following files provide control information and data to the driver programs.
Their names can be provided in response to the question
File for input of control data ([cr] for keyboard)?
Be sure to include the filename extension (.CNM). The nomenclature follows that for
the DR*.PAS files. In some cases additional examples have been provided. For these
files a brief description is provided in the following list of control files.