[ Intro | Pubs | WebTables | Workbook | Software | SLACVX | Search ] | |

[ WebTables : Help | Maintenance ] |

- DISK$SLD_USR0:[PERL.COLMATH]COLMATH.EXE
- Called by:
- WTINTERMED.COM
- Intermediate Exec

- Reads input from:
- CI*.TMP (for Column math Input)
- Input to the Column Math Engine
- flagstr
- 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:

- o
- read a value from the input data file
- d
- 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*).
- digit
- write out the result rounded to this accuracy (handle the data as a real number)
- p
- 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.

Joseph Perl

3 October 1997