******************************************************************************
*                                                                            *
*                                 TPMATH2.ZIP                                *
*                                                                            *
*                    MATHEMATICAL LIBRARY IN TURBO PASCAL                    *
*                           PART 2 : DEMO PROGRAMS                           *
*                         Last updated : August 1997                         *
*                                                                            *
******************************************************************************



							AUTHOR : Dr Jean DEBORD

			   Laboratoire de Pharmacologie, Faculte de Medecine
			   2 Rue du Docteur Marcland, 87025 Limoges (France)
							JDebord@compuserve.com
			   http://ourworld.compuserve.com/homepages/JDebord

******************************************************************************
 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
========

Demo programs
-------------

  SPEED.PAS    : Test of assembler routines for 387+ coprocessors
  TESTFUNC.PAS : Test of elementary functions
  SPECFUNC.PAS : Test of special functions
  GRAFUNC.PAS  : Graph of a function
  CHOLESK.PAS  : Cholesky factorization of a positive definite matrix
  DETINV.PAS   : Determinant and inverse of a square matrix
  SYSEQ.PAS    : System of linear equations (Gauss-Jordan elimination)
  SYSEQLU.PAS  : System of linear equations (LU decomposition)
  SYSEQSVD.PAS : System of linear equations (Singular value decomposition)
  SYSEQC.PAS   : System of linear equations with complex coefficients
  EIGENSYM.PAS : Eigenvalues and eigenvectors of a symmetric matrix
  EIGENVAL.PAS : Eigenvalues of a general square matrix
  EIGENVEC.PAS : Real eigenvalue and eigenvector of a general square matrix
  HESSIAN.PAS  : Gradient and Hessian of a function of several variables
  MINFUNC.PAS  : Minimization of a function of several variables
  TESTCOMP.PAS : Test of complex numbers and functions
  TESTFFT.PAS  : Test of Fast Fourier Transform
				 (modified from Don Cross, with permission)
  RANTEST.PAS  : Test of random number generator
  RANTESTG.PAS : Test of Gaussian random number generator
  FITPOLY.PAS  : Linear and polynomial regressions
  FITMULT.PAS  : Multiple linear regression
  FITEXPO.PAS  : Nonlinear regression : sum of exponentials
  FITFRAC.PAS  : Nonlinear regression : rational fraction
  FITSVD.PAS   : Multiple linear regression by singular value decomposition

Include files (used by the regression programs)
-----------------------------------------------

  REG_IN.INC   : Reads input file
  REG_OUT.INC  : Writes output file
  REG_NL.INC   : Performs nonlinear regression
  REG_PLOT.INC : Plots the fitted curve

Data files
----------
  
  SPECFUNC.DAT : Data for testing special functions
  MATRIX1.DAT  : Data for determinant, inverse and eigenvalues
  MATRIX2.DAT  : Data for systems of equations
  MATRIX3.DAT  : Data for systems of equations with complex coefficients
  MATRIX4.DAT  : Data for Cholesky factorization
  LINE.DAT     : Data for linear regression
  POLYNOM.DAT  : Data for polynomial regression
  INHIB.DAT    : Data for multiple linear regression (from ref. 2)
  ORAL1.DAT    : Data for nonlinear regression (sum of exponentials)
  ORAL2.DAT    : Data for nonlinear regression (sum of exponentials)
  IV2.DAT      : Data for nonlinear regression (sum of exponentials)
  ENZYME.DAT   : Data for nonlinear regression (rational fraction)

Documentation file
------------------

  TPMATH2.TXT  : This file

The use of the programs is explained in the comment part of each file.


SYSTEM REQUIREMENTS
===================

PC or compatible
Math coprocessor recommended
Turbo Pascal v. 4.0 or higher 
(TP 6.0 or higher is required to use the 387-coprocessor assembler routines)


INSTALLATION
============

- Copy all files to a given directory 
- The units and include files contained in TPMATH1.ZIP must be installed 
  in directories accessible to Turbo Pascal


REFERENCES
==========

(1) D. CROSS
	Fast Fourier Transforms
	http://www.intersrv.com/~dcross/fft.html

(2) J. DEBORD, P. N'DIAYE, J. C. BOLLINGER et al
	Cholinesterase inhibition by derivatives of 2-amino-4,6-dimethylpyridine
	J. Enzyme Inhib., 1997, 12, 13-26

(3) L. A. FROISTAD
	RANLAF.ZIP on Compuserve's IBMPRO forum

(4) J. D. GAYRARD
	MATHLIB2.ZIP on Compuserve's BPASCAL forum
	Also available at the Delphi Super Page:
	http://wcarchive.cdrom.com/pub/delphi_www/
	in the Delphi 1.0 Freeware section.

(5) R. GOMENI & C. GOMENI
	Automod : A polyalgorithm for an integrated analysis of 
	linear pharmacokinetic models.
	Comput. Biol. Med., 1979, 9, 39-48

(6) D. W. MARQUARDT
	An algorithm for least squares estimation of nonlinear parameters.
	J. Soc. Indust. Appl. Math., 1963, 11, 431-441

(7) A. R. MILLER
	Basic Programs for Scientists and Engineers.
	Sybex, 1981

(8) J. A. NELDER & R. MEAD
	A simplex method for function minimization.
	Comput. J., 1964, 7, 308-313

(9) 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

(10) Turbo Pascal Numerical Methods Toolbox.
	 Borland International, 1986

