- NAME
-
curvop - mathematical operations with curves
- SYNOPSIS
-
curvop -{s|a|v|m|d} file1 file2 > output
- DESCRIPTION
-
Curvop subtracts, adds, averages, divides or multiplies
two curves represented by x, y values in file1
and file2. The resulting curve is defined at the x-values
in file1; if the x-values in file2 do not correspond, linear
interpolation is performed between neighboring points in file2
to obtain corresponding values for the operation. Naturally,
the curve resulting from the operation is only defined for
the region of file1 that is covered by file2.
The source code is in the src/carnal/etc/ directory.
- OPTIONS
-
- -s
- Subtract file1.y - file2.y.
- -a
- Add file1.y + file2.y.
- -v
- Average file1.y and file2.y.
- -m
- Multiply file1.y * file2.y.
- -d
- Divide file1.y / file2.y. If the Y value for file2 is 0, the program
will stop with an error message.
[Contents] [Previous] [Next]
Updated on January 5, 2000. Comments to case@scripps.edu