This is not an answer to your original question, but from some of your responses to other answers I see that you are making a fundamental mistake:
You cannot just enter predicates at the Prolog prompt!
You might want to read that again. (And this is what your Prolog is trying to tell you saying Undefined procedure: :-/2
). So if e.g Jerome suggests (quote):
:- use_module(library(clpr)).
run(A, B, C) :- {A+B+C=1, A*A+B*B+C*C=2}.
you need to put this code into a file and consult/1
the file (look up the manual for "consult"). At a Prolog command prompt you can only enter queries, not predicates. (There are ways around this, but you better get the "consult" thing straight first).
After consulting the file, you will then enter queries like run(A,B,C)
and get some results. This way, you will find most of the code offered will run for you, too.
You should really consider reading an introduction to Prolog, as someone commented to one of your other questions on SO, before hasting to solve particular problems.