IV. Capabilities and Limitations
The program tries to be helpful to the user as much as possible. For example, if for some reason the MIT-Mathlab computer is not available, the MACSYMA service at the MIT-AI computer is procured.
It should be mentioned that though the program is fairly capable in retrieving results, recognizing error messages, and separating comments, its recognition is not fool-proof. The program only makes an educated guess as to where the answer lies: it is not as clever as a human user sitting at a console, who can filter out such messages as "System going down" and communication from another user (console-link) if they were to appear in the middle of the result. This points to one of the pitfalls of using a facility via a program that is basically designed for use by human users.
The program reliability can be marginally improved by asking MACSYMA to print special characters before and after the results it sends (but again this is not fool-proof). For example, the following input to MACSYMA:
Block ([ans],
print (/(),
ans: diff (X^2,X),
print (string (ans))
print (/)),
return (ans));
will cause MACSYMA to generate the following output:
(
2*X
)
(D**) 2X
From the above output, the answer "2*X" can be easily extracted.
The resource sharing program does however recognize the so-called "unintegratable" functions such as "EXP (X^2)" -- and gives the correct error response. Normally, the user is in "TERSE" mode, and does not see the interaction between MACSYMA and MUDDLE. To see the interaction the user must enter "VERBOSE" mode by typing:
<VERBOSE>$
to MUDDLE. To return to "TERSE" mode the user types:
<TERSE>$
The user can also, if he is proficient in use of MACSYMA, communicate directly with MACSYMA at any point by typing:
<TELCOM 1>$
to MUDDLE. The TELCOM feature may be useful if the user wishes to see what is going on, or wants to examine the MACSYMA computations by entering the LISP environment (typing <Control-G> to MACSYMA). To return to MUDDLE and the automated environment, the user first escapes to MUDDLE by typing <Control-E>, and then types:
<AUTO>$
to MUDDLE. If the user types "<ERRET 1>$" after escaping to MUDDLE from "TELCOM" mode, he will be returned in direct communication with MACSYMA. If the user discovers that his "MACSYMA" is hopelessly confused or if he wishes to start a new version of MACSYMA, he must type:
<DIS>$
to MUDDLE, which will disconnect him. Typing "<MACSYMA>$" or using any of the functions that use MACSYMA will connect him to MACSYMA again.
Currently, MUDDLE recognizes and takes action as described above whenever differentiate, integrate, expand, simplify, and integrate.simplify (integrate and simplify) functions are encountered. But it is quite easy to generate programs for other operations such as Laplace transforms and solving equations. The prefix-to-infix conversion and vice-versa works for all mathematical forms we have encountered so far in our short experiment.
An alternate way to utilize MACSYMA's capabilities would have been to use it in the LISP environment by constructing a suitable interface between LISP and MUDDLE. Such an approach would avoid the multiple conversions from prefix to infix form and vice-versa, but other, perhaps more difficult, conversions would be required.