<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>logic on Ciência Programada</title>
    <link>https://cienciaprogramada.com/tags/logic/</link>
    <description>Recent content in logic on Ciência Programada</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</managingEditor>
    <webMaster>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</webMaster>
    <copyright>© 2026 Francisco Bustamante</copyright>
    <lastBuildDate>Thu, 18 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://cienciaprogramada.com/tags/logic/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Mathematical Induction: Proving Properties for All Natural Numbers</title>
      <link>https://cienciaprogramada.com/2026/06/mathematical-induction/</link>
      <pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/06/mathematical-induction/</guid>
      <description>If the first domino falls and each domino knocks over the next, they all fall. That is the logic of the Principle of Mathematical Induction. We will see the structure of the proof (base case, hypothesis and step) in sums, divisibility and inequalities, and the false proof that all horses are the same color.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/06/mathematical-induction/featured_0077.webp" />
    </item>
    
    <item>
      <title>Venn Diagrams and Set Operations</title>
      <link>https://cienciaprogramada.com/2026/06/venn-diagrams-set-operations/</link>
      <pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/06/venn-diagrams-set-operations/</guid>
      <description>Union, intersection, difference, and complement are the basic operations on sets, and they show up in SQL as UNION, INTERSECT, and EXCEPT. We see each one in Venn diagrams, along with De Morgan&amp;rsquo;s laws, distributivity, and the difference between a Venn diagram and an Euler diagram.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/06/venn-diagrams-set-operations/featured_0074.jpg" />
    </item>
    
    <item>
      <title>Sets: What They Are and How to Define Them Precisely</title>
      <link>https://cienciaprogramada.com/2026/06/sets/</link>
      <pubDate>Fri, 05 Jun 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/06/sets/</guid>
      <description>The collection of tall people is not a set: there is no criterion that decides, for any person, whether they belong or not. We define set, membership, roster and set-builder descriptions, equality, inclusion, and the power set.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/06/sets/featured_0073.jpg" />
    </item>
    
    <item>
      <title>Discrete Mathematics: Introduction and Roadmap</title>
      <link>https://cienciaprogramada.com/2026/06/discrete-mathematics-introduction-roadmap/</link>
      <pubDate>Thu, 04 Jun 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/06/discrete-mathematics-introduction-roadmap/</guid>
      <description>In how many ways can you choose a valid password? What is the shortest path between two cities? These are questions of discrete mathematics. This roadmap introduces the site&amp;rsquo;s four series on the topic: sets, induction and recurrence, combinatorics, and graphs, with 28 articles.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/06/discrete-mathematics-introduction-roadmap/featured_0072.jpg" />
    </item>
    
    <item>
      <title>Simplifying Logic Functions: Minterms, Maxterms, and the Karnaugh Map</title>
      <link>https://cienciaprogramada.com/2026/05/simplifying-logic-functions/</link>
      <pubDate>Wed, 27 May 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/05/simplifying-logic-functions/</guid>
      <description>How do we go from a truth table to the leanest Boolean expression? We show three paths: the canonical forms with minterms and maxterms, algebraic simplification, and the Karnaugh map, with worked exercises and a check in Python with SymPy.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/05/simplifying-logic-functions/featured_0071.jpg" />
    </item>
    
    <item>
      <title>Boolean Algebra: the mathematical foundation of digital computing</title>
      <link>https://cienciaprogramada.com/2026/05/boolean-algebra/</link>
      <pubDate>Wed, 20 May 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/05/boolean-algebra/</guid>
      <description>Every operation of a processor can be described with three logical operations: AND, OR and NOT. We go from gates and truth tables to theorems, De Morgan&amp;rsquo;s laws and the simplification of expressions, with the half adder as the first circuit and examples in Python.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/05/boolean-algebra/featured_0070.png" />
    </item>
    
    <item>
      <title>Real Numbers and Floating Point: Base Conversion and Precision</title>
      <link>https://cienciaprogramada.com/2026/04/real-numbers-base-conversion/</link>
      <pubDate>Wed, 01 Apr 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/04/real-numbers-base-conversion/</guid>
      <description>Why doesn&amp;rsquo;t 0.1 plus 0.2 give 0.3? Because 0.1 is a repeating fraction in binary. We convert fractions between bases by successive multiplications, look at the bits of a float with struct, and see two practical ways out: integers for money and math.isclose for comparisons.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/04/real-numbers-base-conversion/featured_0053.jpg" />
    </item>
    
    <item>
      <title>Bit-Level Logic: Bitwise Operators and Masks in Python</title>
      <link>https://cienciaprogramada.com/2026/03/bitwise-operators-masks-python/</link>
      <pubDate>Mon, 30 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/bitwise-operators-masks-python/</guid>
      <description>In Python, 5 and 6 returns 6, and 5 &amp;amp; 6 returns 4. We explain the difference and the bitwise operators AND, OR, XOR, NOT and the shifts, used in masks that check, set, clear and toggle bits. In the end, we see where the 755 in chmod comes from.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/bitwise-operators-masks-python/featured_0056.jpg" />
    </item>
    
    <item>
      <title>Computer Arithmetic: Addition and Subtraction in Binary, Octal, and Hexadecimal</title>
      <link>https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/</link>
      <pubDate>Wed, 25 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/</guid>
      <description>The addition and subtraction rules of base 10 hold in any base: only the value that triggers the carry changes. We do arithmetic in binary, octal, and hexadecimal, see why with three addends the carry can be worth 2, and implement both algorithms in Python.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/arithmetic-operations-number-bases/featured_0054.jpg" />
    </item>
    
    <item>
      <title>Number Bases and Integer Conversion: The Complete Guide</title>
      <link>https://cienciaprogramada.com/2026/03/integer-bases-conversions/</link>
      <pubDate>Mon, 23 Mar 2026 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2026/03/integer-bases-conversions/</guid>
      <description>In any base, the value of the base itself is written 10. We start from positional notation to convert integers between decimal, binary, octal, and hexadecimal, using expansion, successive divisions, bit grouping, and Python&amp;rsquo;s bin, oct, hex, and int functions.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2026/03/integer-bases-conversions/featured_0052.jpg" />
    </item>
    
    <item>
      <title>Logic for Programmers</title>
      <link>https://cienciaprogramada.com/2021/12/logic-for-programmers/</link>
      <pubDate>Fri, 03 Dec 2021 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2021/12/logic-for-programmers/</guid>
      <description>In programming, the word “logic” can refer to the process of designing an algorithm, to the conditional structures of the language, or to logical operators such as AND and OR. In the last two cases, we are within what is called mathematical logic.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2021/12/logic-for-programmers/featured_0033.jpg" />
    </item>
    
    <item>
      <title>Short-Circuit Evaluation in Python - Boolean Operators</title>
      <link>https://cienciaprogramada.com/2021/08/short-circuit-in-python/</link>
      <pubDate>Mon, 16 Aug 2021 00:00:00 +0000</pubDate>
      <author>contato[@]cienciaprogramada.com.br (Francisco Bustamante)</author>
      <guid>https://cienciaprogramada.com/2021/08/short-circuit-in-python/</guid>
      <description>The and and or operators are short-circuit operators, meaning that the second operand is only evaluated if the result cannot be determined from the value of the first operand alone. Confusing? Let&amp;rsquo;s look at some examples in this article.</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://cienciaprogramada.com/2021/08/short-circuit-in-python/featured_0019.jpg" />
    </item>
    
  </channel>
</rss>
