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

    Nov 10, 2009 · What does \+ mean in Prolog? Asked 16 years ago Modified 7 years, 7 months ago Viewed 62k times

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

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

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

    Nov 22, 2012 · Prolog "or" operator, query Asked 13 years ago Modified 12 years, 6 months ago Viewed 157k times

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

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

    Jun 7, 2018 · SWI Prolog and GNU Prolog do not allow you to define arithmetic operators and functions. So X is 0 and 1. will fail due to and not being recognized. I'm not sure if there's a …

  8. "Not equal" sign in Visual Prolog? - Stack Overflow

    Documentation for the second variant pointed out by Kaarel can be found in this Visual Prolog reference page. However the problem with your code goes a little deeper.

  9. Prolog: And-Or expressions (boolean function) - Stack Overflow

    I am doing a homework need to implement two relations and(A,B) and or(A,B) that perform the logical “AND” and the logical “OR” operations on two Boolean operands A and B. Relation …

  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 …