About 10,500,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. 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?

  5. 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 …

  6. '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.

  7. What is the logical 'not' in Prolog? - Stack Overflow

    In Prolog, the "not" is an example of "negation as failure", but it is felt that \+ will make it clearer to the programmer just what precisely is being asserted in any given rule. So you CAN use "not" …

  8. 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 …

  9. compilation - How to run prolog code? - Stack Overflow

    Oct 16, 2013 · The language is one thing but how to compile or run your code is a different issue. For example, Visual Prolog uses a key sequence within the IDE, CTRL-SHIFT-B, to build the …

  10. list - What is "!" in Prolog - Stack Overflow

    Specifically, Prolog will never consider the third clause of your nrSubliste/2 rule, i.e. the one ignoring list head with _, if H in the second clause is such that munteMain(H) succeeds. Note …