diff








Symbolic differentiation




Symbolic differentiation

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.

s_exp(TOKL,OL,EXP) : used by the parser.

d(EXP,"x",EXP1) : differentiate the
expression.

reduce(EXP1,EXP2) : the expression is reduced.


Diff.prj




Wyszukiwarka

Podobne podstrony:
mingwrt file64 diff
install update diff
diff
2007 03 What s the Diff Examining the Algorithms of the Diff Utility
xvid vaq 1 2 2 diff
amp diff
honeyd 0 5 win32 diff
honeyd 0 5 win32 diff
gcc bug4625 diff
function array diff assoc
diff 1
binutils cvs file64 diff
function array diff
function array diff

więcej podobnych podstron