gcomp(1)

gcomp1

Do computations on a graph file.

Usage

gcomp [-amilh] [+variable value ..] [file ..]

Overview

Gcomp reads each graph file in sequence and computes the specified calculations. The type options are as follows:

-n

Print the name of each curve.

-a

Print average and standard deviation of each curve.

-m

Print minimum and maximum for each curve.

-i

Print Romberg's approximation to the integral of each curve.

-l

Print the slope, intercept, and correlation coefficient using the least squares method of linear regression.

-h

Do 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 +variable value options. The only truely useful variables for this program are xmin and xmax. They determine boundaries for the calculations.

Examples

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

Releases

Unchanged in 3 releases since Debian 5.0 (Lenny).

  1. 5.0–7

Author

Greg Ward

Bugs

Only the y values can be used for computation.

From radiance 4R1+20120125-1+b1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.