Visual Prolog is well suited for symbolic mathematics because it is easy and elegant to handle expressions as Prolog structures.
A typical dialog with the system could be
write an expression: 10*x^4
Differentiated expression:
0*x^4+10*4*x^3*1
Reduced expression:
40*x^3
The Diff program consist of the following parts:
Scanning and parsing a string into the EXPression structure. The actual differentation reducing an expression converting an expression back to a string.
Of these parts, the reducing of an expression is the most complicated. From the Goal-section, the main parts of the program, can be examined.
tokl(STR,TOKL) : converts the string to a list of tokens.