Display program code

equations_gauss.pl : Solves linear polynomial equations
Solves linear polynomial equations by Gaussian variable elimination.

How to use:
The handler solves a set of equations enclosed in curly brackets:
{PL1=PR1, PL2=PR2, .., PLn=PRn}. (PLi, PRi are linear polynomial terms)
If no solution exists the handler fails.
Variables can either be expressed by Prolog variables (X) or by atoms (x).
If Prolog variables are used, as soon as the handler has determined the value of a variable it is bound to this value, e.g.: X = 10.
For Prolog variables, the termination of the handler requires a stable variable order that is implemented by the imported module var_order.
If you don't want to use this module, you can also use atoms for this purpose, a variable binding is then represented as a normalized equation, e.g.: [1*x] eq 10.

Program: Change the code, then submit!

Console: Enter query or select example from below, then submit and wait for answer!

Select example query: 

CHR
WebCHR help - CHR Website - (c) Copyrights Martin Kaeser Uni Ulm 2007