Content deleted Content added
François Bry (talk | contribs) m →Tree terms: "functors", a Prolog-specific and misleading denomination, replaced by "function symbol" |
François Bry (talk | contribs) m →Reals: "functor", a Prolog-speicific and misleading denomination, replaced by "function symbol". |
||
Line 63:
===Reals===
Constraint logic programming with [[real number]]s uses real expressions as terms. When no
To be precise, terms are expressions over variables and real constants. Equality between terms is a kind of constraint that is always present, as the interpreter generates equality of terms during execution. As an example, if the first literal of the current goal is <code>A(X+1)</code> and the interpreter has chosen a clause that is <code>A(Y-1):-Y=1</code> after rewriting is variables, the constraints added to the current goal are <code>X+1=Y-1</code> and <math>Y=1</math>. The rules of simplification used for
Reals and
Equality of two terms can be simplified using the rules for tree terms if none of the two terms is a real expression. For example, if the two terms have the same
===Finite domains===
|