We have already had some informal exposure to logic through the Python operators and,or,not. In this section we formalize the notions underlying these operators and implement in Python a propositional (Boolean) algebra that is similar in many ways to ordinary algebra. The functions in the chapter comprise the module Logic.py. Here is the header for the module.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Symbolic Logic

  • Hugo D. Junghenn

摘要

We have already had some informal exposure to logic through the Python operators and,or,not. In this section we formalize the notions underlying these operators and implement in Python a propositional (Boolean) algebra that is similar in many ways to ordinary algebra. The functions in the chapter comprise the module Logic.py. Here is the header for the module.