COLMATH.EXE - the Column Math Engine
- Called by:
- Intermediate Exec
- Reads input from:
- CI*.TMP (for Column math Input)
- Input to the Column Math Engine
- a string of flags specifying operations to be performed
- Writes output to:
- CO*.TMP (for Column math Output)
- Output from the Column Math Engine
This is the Column Math Engine called by
WTINTERMED.COM, the Intermediate Exec.
It is currently able to handle division and Poisson errors.
It could eventually be expanded to handle other math functions.
Characters in flagstr have the following function:
- read a value from the input data file
- read another value from the input data file and divide the previous value
by this value
- write out the result with no rounding
(handle the data as a string if the sequence was o*, as a real number
if the string was od*).
- write out the result rounded to this accuracy
(handle the data as a real number)
- output the Poisson error of the previous result
For example, the flag string "o*od3o2p" means
- write out the first column of input unchanged as a string
- divide the second column by the third column and write it out as a
real number rounded to three places
- write out the fourth column as a real number rounded to two places
- write out another column which is the Poisson error of the previous column
Columns of data for which no operation needs to be performed are handled
as strings, written back out just as then came in.
This allows a simplified program flow for INTERMED.COM.
All of the data it needs is present in the output of the Column Math Engine.
Modifications to COLMATH.C can be tested by recompiling and relinking
COLMATH.C and then calling it from COLTEST.COM (located in the same directory).
Like all of the executables called by WTINTERMED.COM, COLMATH comes in two flavors,
Alpha and Vax.
3 October 1997