liveBook · Manning

Boolean operation

A Boolean operation combines or transforms truth-valued inputs according to logical rules to produce a truth-valued result.

How 4 Manning books explain it

Get Programming: Learn to code with Python

A logical operator is an operator that performs logical combination or negation of Boolean or truthy and falsy operands.

How it is used
Combines Boolean conditions to guide program decisions in `if` statements.
How deep it goes
Explains operator truth values with a table and shows combined conditions in an `if` statement.
Examples
Uses pasta-and-sauce decisions, jacket-or-sweater choices, and negative-number conditions.
What you can do after
Apply Boolean operators to combine conditions in Python `if` statements.

Read how Get Programming: Learn to code with Python explains boolean operation →

Math and Architectures of Deep Learning

A boolean-valued function over logical inputs, such as AND, OR, NOT, or XOR, used here as an example family of functions that can be emulated by perceptrons or MLPs.

How it is used
Uses binary decision components to model logical behavior inside larger systems and neural-network function approximators.
How deep it goes
Defines binary operations, gives real-world cases, and derives MLP construction from truth-table rows, stopping short of training details.
Examples
Uses cat avoidance, vehicle braking, access alarms, friendship recommendations, and an XOR truth table.
What you can do after
Build boolean functions from truth tables by decomposing active rows into perceptrons and combining them in an MLP.

Read how Math and Architectures of Deep Learning explains boolean operation →

100 Java Mistakes and How to Avoid Them

How it is used
Uses Boolean-style operators to combine flags, mask bits, and express conditions in Java.
How deep it goes
Explains precedence, parentheses, compiler detection, and shift corner cases without deriving Boolean algebra.
Examples
Demonstrates masked-bit updates, flag comparisons, negated instanceof conditions, and least-significant-bit masks.
What you can do after
Diagnose precedence and shift errors, then prevent them with parentheses, operand checks, and static-analysis rules.

Read how 100 Java Mistakes and How to Avoid Them explains boolean operation →

Clojure: The Essential Reference

A boolean operator is an operator or function that combines or transforms truth-valued expressions.

How it is used
Uses boolean operations to combine truth values and express short-circuiting decisions, collection-wide tests, and existential searches.
How deep it goes
Explains truthiness, predicate contracts, return behavior, accepted collections, and one input exception, but defers comparison details.
Examples
Demonstrates positivity tests, negative-number searches, address-book lookup, bingo-card validation, and prize-ticket matching.
What you can do after
Apply boolean logic through Clojure operators and collection functions to test conditions or retrieve the first matching result.

Read how Clojure: The Essential Reference explains boolean operation →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.