diff.hlp

来自「prolog,人工智能推理程序,运行环境prolog」· HLP 代码 · 共 31 行

HLP
31
字号
                        SYMBOLIC MATHEMATICS

Prolog can be used for solving symbolic and mathematical problems.
Expressions can be modeled by composite objects. (In the program this
is demonstrated by EXPR)

In the example, the differentiation is followed by a reduction.

The formulas of differentiation are:

d(K)/dx      = 0.
d(x)/dx      = 1.
d(y)/dx      = 0.
d(F+G)/dx    = d(F)/dx+d(G)/dx.
d(F-G)/dx    = d(F)/dx-d(G)/dx.
d(F*G)/dx    = G*d(F)/dx+F*d(G)/dx.
d(F/G)/dx    = (F*d(G)/dx-G*d(F)/dx)/G^2
d(F^n)/dx    = n*F^(n-1)*d(F)/dx.
d(ln(F))/dx  = 1/F*d(F)/dx.
d(sin(F))/dx = cos(F)*d(F)/dx.
d(cos(F))/dx = -sin(F)*d(F)/dx.
d(tan(F))/dx = sec(F)^2*d(F)/dx.

Differentiation is realized by the predicate DIFF. Two parameters are 
used:
	1) The original expression
	2) The differentiated result

Each differentiation-rule has a corresponding rule in the predicate
diff.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?