Top "Logic" questions

Logic refers to the ultimate flow of your code and how you arrive your desired solution.

XOR of three values

What is the simplest way to do a three-way exclusive OR? In other words, I have three values, and I …

language-agnostic logic boolean xor boolean-expression
Cypher Neo4J - CASE Expression with MERGE

I'm trying to implement the logic in Cypher where, based on a particular condition (CASE Statement), I would create some …

merge neo4j logic case cypher
python build a dynamic growing truth table

My question is simple: "how to build a dynamic growing truth table in python in an elegant way?" for n=3 …

python logic truthtable
Translating “neither…nor” into a mathematical logical expression

Having some difficulty doing translations for complicated neither...nor sentences. With these characters: ~ Negation V Disjunction & Conjunction I'm trying …

math logic discrete-mathematics calculus
Fitch Format Proofs - Any automatic solvers around?

Is there any software around that using the Fitch format (used in Language, Proof and Logic), allows one to put …

computer-science logic first-order-logic fitch-proofs
Type-juggling and (strict) greater/lesser-than comparisons in PHP

PHP is famous for its type-juggling. I must admit it puzzles me, and I'm having a hard time to find …

php if-statement comparison logic ieee-754
What does Exclusive in XOR really mean?

Maybe this is just obvious to everyone but can someone explain where XOR (or Exclusive-OR) got its name from? What …

language-agnostic math logic boolean xor
What is fuzzy logic?

I'm working with a couple of AI algorithms at school and I find people use the words Fuzzy Logic to …

artificial-intelligence logic theory definition fuzzy-logic
Visual Studio Project/Item Template Parameter Logic

Since I have only seen a few posts on the topic but no in-depth explanation of the logic for parameters …

visual-studio logic project-template
Predicate vs Functions in First order logic

I have been so confused lately regarding difference between predicate and function in first order logic. My understanding so far …

algorithm artificial-intelligence logic agent first-order-logic