Provided by: radiance_4R0+20110410-1build1_amd64

**NAME**

gcomp - do computations on a graph file.

**SYNOPSIS**

gcomp[-amilh][+variablevalue..][file..]

**DESCRIPTION**

Gcompreads each graphfilein sequence and computes the specified calculations. The type options are as follows:-nPrint the name of each curve.-aPrint average and standard deviation of each curve.-mPrint minimum and maximum for each curve.-iPrint Romberg's approximation to the integral of each curve.-lPrint the slope, intercept, and correlation coefficient using the least squares method of linear regression.-hDo not print a header in the output. The calculations will be displayed as columns in the order they are specified on the command line. If no files are given, the standard input is read. Variables can be set explicitly with+variablevalueoptions. The only truely useful variables for this program are xmin and xmax. They determine boundaries for the calculations.

**EXAMPLE**

To compute the approximate integral of sin(x)/log(x) from 2 to 4: gcomp -i A(x)=sin(x)/log(x); Anpoints=100; xmin=2; xmax=4; ^D

**AUTHOR**

Greg Ward

**BUGS**

Only the y values can be used for computation.

**SEE** **ALSO**

bgraph(1), dgraph(1), icalc(1), igraph(1)