****************************************************************************** * * * TPMATH1.ZIP * * * * MATHEMATICAL LIBRARY IN PASCAL * * PART 1 : UNITS * * Last updated : November 2001 * * * ****************************************************************************** AUTHOR : Dr Jean DEBORD Laboratoire de Pharmacologie, Faculte de Medecine 2 Rue du Docteur Marcland, 87025 Limoges (France) debord.jean@wanadoo.fr JDebord@compuserve.com ****************************************************************************** This library is distributed as freeware. You may use it any way you like, as long as you don't charge money for it, remove the copyright notices, or hold anyone liable for its results. ****************************************************************************** CONTENTS ======== Main directory -------------- FMATH.PAS : Mathematical functions FCOMP.PAS : Complex numbers (modified from E.F. Glynn, with permission) MATRICES.PAS : Vectors and matrices MATCOMP.PAS : Complex matrices EIGEN.PAS : Eigensystems OPTIM.PAS : Function minimization (local minimizers) SIMOPT.PAS : Function minimization (simulated annealing) POLYNOM.PAS : Polynomials and rational fractions FOURIER.PAS : Fast Fourier transform (modified from Don Cross, with permission) MCMC.PAS : Simulation by Markov Chain Monte Carlo STAT.PAS : Statistical functions REGRESS.PAS : Linear and nonlinear regressions PASTRING.PAS : Turbo Pascal string routines PLOTVAR.PAS : Graphic constants, types and variables PLOT.PAS : Plotting routines for DOS TEXPLOT.PAS : Plotting routines for LaTeX WINPLOT.PAS : Plotting routines for Delphi MATH387.INC : Assembler functions for 387+ coprocessors with BP7 / Delphi 1 (modified from J.D. Gayrard, with permission) MATH387.INT : Interface for MATH387.INC MATHP2.INC : Assembler functions for PII+ processors with FPC (contributed by P. NOGARET) MATHP2.INT : Interface for MATHP2.INC PLOT.INC : Common plotting routines TPMATH1.TXT : This file Subdirectory REG ---------------- MODELS.PAS : Library of predefined regression models FIT*.PAS : Individual regression models (used by MODELS.PAS) SYSTEM REQUIREMENTS =================== - PC or compatible - Math coprocessor recommended - Pascal compiler: Turbo Pascal 5.0+ (DOS) Delphi 1.0+ (Windows) Kylix 1.0 (Linux) Free Pascal (FPC) 1.0+ (DOS / Linux) INSTALLATION ============ - Extract the archive in a given directory. Be sure to preserve the subdirectory structure of the archive (if you use PKUNZIP, be sure to use the -d option to create subdirectories, i.e. pkunzip -d tpmath1.zip) - Add the names of the main directory and the REG subdirectory to the search path of the units (e.g "Options/Directories/Unit directories" dialog box in Turbo Pascal). - Add the name of the main directory to the search path of the include files (e.g "Options/Directories/Include directories" dialog box in Turbo Pascal). The use of the routines is explained in the comment part of each file. REFERENCES ========== Software -------- (1) J. D. GAYRARD MATHLIB2.ZIP (Math functions in assembly language) http://www-rab.larc.nasa.gov/nmp/fNMPcode.htm (2) E. F. GLYNN Complex Numbers and Functions in Pascal http://www.efg2.com/Lab/Mathematics/Complex/index.html (3) B. GOFFE Program SIMANN.FOR (Simulated Annealing in Fortran) http://www.netlib.org/simann (4) G. MARSAGLIA The Diehard Battery of Tests of Randomness http://stat.fsu.edu/~geo/diehard.html (5) S. MOSHIER Cephes Math Library (in C) http://www.netlib.org/cephes (6) W. H. PRESS, S. A. TEUKOLSKY, W. T. VETTERLING & B. P. FLANNERY Numerical Recipes in Pascal (Shareware edition) http://garbo.uwasa.fi/pc/turbopas.html (7) Turbo Pascal Numerical Methods Toolbox Borland International, 1986 Books ----- (8) B. P. CARLIN & T. A. LOUIS Bayes and Empirical Bayes Methods for Data Analysis. Chapman & Hall, 1998 (9) A. R. MILLER Basic Programs for Scientists and Engineers. Sybex, 1981 (10) W. H. PRESS, S. A. TEUKOLSKY, W. T. VETTERLING & B. P. FLANNERY Numerical Recipes. The Art of Scientific Computing. Cambridge University Press, 2nd edition 1992 Available on line at http://www.nr.com Articles -------- (11) R. GOMENI & C. GOMENI Automod : A polyalgorithm for an integrated analysis of linear pharmacokinetic models. Comput. Biol. Med., 1979, 9, 39-48 (12) D. W. MARQUARDT An algorithm for least squares estimation of nonlinear parameters. J. Soc. Indust. Appl. Math., 1963, 11, 431-441 (13) J. A. NELDER & R. MEAD A simplex method for function minimization. Comput. J., 1964, 7, 308-313