% @(#)computfunc.hlq	19.1 (ESO-IPG) 02/25/03 13:19:15 
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990 European Southern Observatory
%.IDENT      computfunc.hlq
%.AUTHOR     JDP, IPG/ESO
%.KEYWORDS   MIDAS, help files, COMPUTE/FUNCTION
%.PURPOSE    On-line help file for the command: COMPUTE/FUNCTION
%.VERSION    1.0  12-APR-1985 : Creation, JDP
%----------------------------------------------------------------
\se
SECTION./FUNC
\es\co
COMPUTE/FUNCTION					12-APR-1985 JDP
\oc\su
COMPUTE/FUNCTION image    = function[(refima)]
	compute function values, result as image
COMPUTE/FUNCTION table y  = function[(ind)]
	compute function values, result in table column
\us\pu
Purpose:      
              Compute function values as an image of a column in a table.
              The function is a basic function or is defined as a linear
              combination of basic functions with the command EDIT/FIT.

\up\sy
Syntax:       COMPUTE/FUNCTION image = function[(refima)]
              or
              COMPUTE/FUNCTION table y = function[(ind)]
\ys\pa
              image      = output image name
\ap\pa
              function   = function name
\ap\pa
              refima     = optional reference image defining the image
                           space (start,step,no. of pixels).

              In the second format :
\ap\pa
              table      = table name
\ap\pa
              y          = output column, either already existing or a new one
                           created by the command, to store the fitted values.
\ap\pa
              function   = function name
\ap\pa
              ind        = optional column(s) to define the values of the
                           independent variable(s)
\ap\no
Note:         
              In connection to tables, the columns with the independent and
              dependent variables are in the same table.
              The command uses the guesses as actual parameters, while
              COMPUTE/FIT uses the fitted parameters.
              Basic functions can also be used, without need of previous editing
              (see last example).
              For a list of basic functions see chapter 5 of the manual.
\on\exs
Examples:
\ex
              COMPUTE/FUNCTION IMAGE = FUNC
                 computes IMAGE according to the parameter guesses
                 in the function FUNC. Image space is defaulted to the
                 domain used in the command FIT/IMAGE.
\xe\ex
              COMPUTE/FUNCTION TABLE :VALUE = FUNC(:X1,:X2)
                 computes the column :VALUE in TABLE using the same parameter
                 values as in the previous case, but the independent variables
                 are defined in columns :X1 and :X2.
\xe\ex
              COMPUTE/FUNCTION IMAGE = GAUSS(REFERENCE;100.,10.,5.)
                 computes IMAGE as a gaussian function, defined in the
                 same domain as the image REFERENCE, with functional
                 parameters : maximum value = 100., centre = 10., FWHM = 5.
\xe \sxe
