NOTE: This routine will only 'catch'
errors in the basic numeric expression. It may
not detect invalid or meaningless math operations that may be attempted
when data are processed, such as division by zero, or taking the
log or a non-integer exponent of a negative number. If such situations
occur, results may be unpredictable. The algorithm does find most such
errors during processing, however.
The underlying code for the expression evaluator
was developed by the late, great Robert
Purves (recently deceased and greatly missed). I 'borrowed' it -- with his permission -- and
made some modifications for LabAnalyst.
But Robert P. deserves all the credit. |