About 26,100,000 results
Open links in new tab
  1. 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 …

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

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

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

  4. What does \\+ mean in Prolog? - Stack Overflow

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

  5. What are the best uses of Logic Programming? - Stack Overflow

    Oct 19, 2008 · A language like Prolog is very fascinating, and it's worth learning for the sake of learning, but I have to wonder what class of real-world problems is best expressed and solved …

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

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

  8. How to run SWI-Prolog from the command line? - Stack Overflow

    The SWI-Prolog build process put bin and lib under ~/bin and ~/lib Note: the -f flag disables loading the initialization ~/.plrc, and this could be necessary to get more 'strict control' over …

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

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