Skip to main content

Discrete Math with SageMath: Learn math with open-source software

Chapter 11 Logic Gates

This chapter explains how to process binary inputs in Sage to produce specific outputs based on basic logic gates, such as \(AND\text{,}\) \(OR\text{,}\) and \(NOT\text{.}\) Then, we show how these gates combine to form more complex circuits and integrate into everyday electronics, using built-in and customized Sage functions to simulate and analyze their behavior.