Info-Mac Archive Downloads: dev/lib/

Back to dev/lib/

Equation Evaluator (equation-evaluator-c.hqx)

Download equation-evaluator-c.hqx (92,316 KB)


From: rdouglas@mckellar.com (Rob Douglas)
Subject: Equation Evaluator

This package is a port of C routines posted several years ago to a DOS
archive by Mark Morley. The Equation Evaluator takes an equation in the
form of a text string and returns a value. Having tried a couple
of small C interpreters it was a relief to find something I could
understand and which handled floating point numbers.

There are two folders. The EE folder contains the port and the original
documentation. In the CEquation folder I've reorganized the code as a C++
class.

You will need CodeWarrior as I've used the exception macros provided by
Power Plant.

I haven't been able to contact Mark, but he does give permission to "do
anything you desire with this code, as long as you give credit".