I'm curious if Logic Programs can do algebra

前端 未结 4 1469
陌清茗
陌清茗 2021-01-02 06:32

I read a brief article about Prolog and Logic Programming. I\'m curious if Logic Programs can do algebra. Like would you be able to ask what the Variable of X is in the equa

4条回答
  •  长情又很酷
    2021-01-02 07:13

    There are a few implementations of computer algebra systems in Prolog, including an equation simplifier and the PRESS equation solver. There are also several constraint solvers for linear and nonlinear equations, including CLP(R,Q) and CLP (BNR), and several other solvers that have been implemented using constraint handling rules.

    Instead of implementing a computer algebra system in Prolog, it is also possible to implement a Prolog interpreter in a computer algebra system. For example, there is an article that describes an implementation of a rule-based programming system in Mathematica. There is also an implementation of logic programming system in Mathematica from the Wolfram Library Archive.

    It is also apparently possible to implement logic programs in Sympy using its unification algorithm.

提交回复
热议问题