Fourth Annual USENIX Tcl/Tk Workshop, 1996
TclSolver: An algebraic constraint manager for Tcl
Kevin B. Kenny
GE Corporate R&D Center
Schenectady, N. Y., USA
Abstract
TclSolver is a simple algebraic constraint manager for use in Tcl
applications. It enforces two-way declarative relationships among
variables. If, for example, it is provided with a formula like A
/ B = C / D , it can determine the value of any of the four
variables A , B , C , and
D when the user supplies values for the other three. It
is not a general-purpose equation solver; it is limited to solving for
variables that appear only once in their formulae. This paper presents
the design and implementation of TclSolver, and an example application
that uses TclSolver to perform simple engineering calculations on the
World-Wide Web.
View the full text of this paper in
HTML and
POSTSCRIPT (199,398 Bytes) form.
To Become a USENIX Member, please see our
Membership Information.
|