# MATH general subroutines

The following general subroutines belong to the category MATH:
``Mathematics'' In parentheses the name of the source file is given.
BESSEL
Evaluate Bessel function J, Y, I, K of integer order. (bessel.c)
bessi
Evaluate Modified Bessel function of integer order. (bessel.c)
bessj
Evaluate Bessel function of first kind of integer order. (bessel.c)
bessk
Evaluate Modified Bessel function Kv(x) of integer order. (bessel.c)
bessy
Evaluate Bessel function second kind and of integer order. (bessel.c)
CONVOLVE
Convolves data with two dimensional convolution function. Takes care of BLANKs. (convolve.c)
cubicspline
Cubic spline through X and Y positions. (cubicspline.c)
DCDDBLE
Decodes a string of characters into doubles. (herinp.c)
DCDINT
Decodes a string of characters into integers. (herinp.c)
DCDREAL
Decodes a string of characters into reals. (herinp.c)
DYDX
Determine derivative of a mathematical expression. (dydx.src)
ELLIPSE
Describes the ellipse fitting routines. (ellipse.c)
ELLIPSE1
Routine which gives an initial estimate for an ellipse to N points in the array X,Y. (ellipse1.c)
ELLIPSE2
Fits an ellipse to a set of X and Y positions. (ellipse.c)
ellipsefill
Set a mask for each point in a box that is inside a polygon (ellipsefill.c)
FIE
Describes the routines FIEINI (parses an input string which contains mathematical expression), FIEDO (which does the actual calculations) and FIEDUMP (which dumps the code generated by FIEINI). (fie.c)
FIECLR
Clears code previous generated by FIEINI. (fie.c)
FIEDO
FIEDO evaluates the code generated by FIEINI. (fie.c)
FIEDUMP
Display the code generated by FININI on stdin. (fie.c)
FIEINI
Decodes a string containing a mathematical expression for FIEDO. (fie.c)
FIEPAR
Defines the parameter names for the next call to FIEINI. (fie.c)
FITGAUSS2D
Fit 2d-gaussian to data in a box (fitgauss2d.c)
GASDEV
Generating gaussian random deviates. (gasdev.f)
GAUEST
Searches for gaussian components in a profile. (gauest.c)
GAUESTD
Searches for gaussian components in a profile. (gauestd.c)
HERINP
Decodes a string of characters into reals, integers, logicals, characters or bytes. (herinp.c)
interpol
Get 2d-bilinear interpolated image value at given position in a 2-dim array. (interpol.c)
INVMAT
INVMAT is a routine for inverting a matrix. The algorithm used is the Gauss-Jordan algorithm described in Stoer, Numerische Matematik, 1 Teil. (invmat.shl)
IRAN
Generating random integer. (iran.f)
LSQFIT
LSQFIT is a routine for making a least-squares fit of a function to a set of data points. The method used is described in: Marquardt, J.Soc.Ind.Appl.Math. 11, 431 (1963). This method is a mixture of the steepest descent method and the Taylor method. (lsqfit.c)
LSQFITD
LSQFITD is a routine for making a least-squares fit of a function to a set of data points. The method used is described in: Marquardt, J.Soc.Ind.Appl.Math. 11, 431 (1963). This method is a mixture of the steepest descent method and the Taylor method. (lsqfitd.c)
MOMS
Given an data array, return (depending on mode) sum, mean, variance, standard deviation, absolute deviation, skewness, kurtosis or median. (moms.c)
QCNVL1
Auxiliary routine for CONVOLVE. (qcnvl1.src)
qcnvl2
Auxiliary routine for CONVOLVE. (qcnvl2.src)
RAN
Returns a uniform random deviate between 0.0 and 1.0. (ran.c)
RANDEV
Generating random deviates from various distributions. (randev.f)
RANK
Describes the available ranking routines. (rank.c)
RANKDA
Indexes a double precision array in ascending order. (rank.c)
RANKDD
Indexes a double precision array in descending order. (rank.c)
RANKIA
Indexes an integer array in ascending order. (rank.c)
RANKID
Indexes an integer array in descending order. (rank.c)
RANKRA
Indexes a real array in ascending order. (rank.c)
RANKRD
Indexes a real array in descending order. (rank.c)
scanline
Set a mask for each point in a box that is inside a polygon (scanline.c)
SKYFIT
SKYFIT is a routine for determining the sky-projection parameters. It takes a set of grid positions and a set of sky coordinates to fit the parameters. The method is a mixture of the steepest descent method and the Taylor method. (skyfit.c)
Spline interpolation routines.
(spline.c)
spline1
1D cubic spline interpolation. (spline.c)