About 10,700,000 results
Open links in new tab
  1. What does \\+ mean in Prolog? - Stack Overflow

    Nov 10, 2009 · What does \+ mean in Prolog? Asked 15 years, 11 months ago Modified 7 years, 6 months ago Viewed 61k times

  2. math - Prolog =:= operator - Stack Overflow

    Jan 25, 2021 · There are some special operators in Prolog, one of them is is, however, recently I came across the =:= operator and have no idea how it works. Can someone explain what this …

  3. What is the difference between == and = in Prolog?

    May 25, 2015 · The = "operator" in Prolog is actually a predicate (with infix notation) =/2 that succeeds when the two terms are unified. Thus X = 2 or 2 = X amount to the same thing, a …

  4. Define AND, OR, NOT operators in Prolog - Stack Overflow

    Jun 7, 2018 · I have to define a prolog program which gives the truth table for a logic formula like this: (a or non (b and c)) where the logic variables can only have true or false value, and the …

  5. 'if' in prolog? - Stack Overflow

    May 17, 2010 · Is there a way to do an if in prolog, e.g. if a variable is 0, then to do some actions (write text to the terminal). An else isn't even needed, but I can't find any documentation of if.

  6. Not equal and not unify in Prolog - Stack Overflow

    Jul 14, 2012 · Not equal and not unify in Prolog Asked 12 years, 11 months ago Modified 9 years, 7 months ago Viewed 45k times

  7. What's the -> operator in Prolog and how can I use it?

    Nov 21, 2009 · I've read about it in a book but it wasn't explained at all. I also never saw it in a program. Is part of Prolog syntax? What's it for? Do you use it?

  8. syntax - Prolog "or" operator, query - Stack Overflow

    Nov 22, 2012 · 30 I'm working on some prolog that I'm new to. I'm looking for an "or" operator registered(X, Y), Y=ct101, Y=ct102, Y=ct103. Here's my query. What I want to write is code …

  9. What is the difference between :- and ?- in Prolog?

    Oct 24, 2018 · In ISO Prolog, :- is used for directives like operator declarations only. The ?- operator is also defined but no meaning is given to it. These operators stem from the DEC …

  10. prolog - print the value of a variable - Stack Overflow

    SWI Prolog does keep a history of top-level bindings; type help. to go into the manual, then search for bindings or just navigate to section 2.8 of the manual, 'Reuse of top-level bindings'.