The Math & Logic Foundation
Numbers, algebra and logical thinking, built step by step
A friendly foundation for arithmetic, algebra, functions, truth tables, Boolean logic, trigonometry, geometry, calculus and number bases.
The arithmetic, logic, algebra and discrete math behind everyday programming
The math and logic behind programming, built step by step from arithmetic and number theory through logic, algebra, trigonometry, geometry and calculus to number bases and binary, with a From Concept to Code section that turns each idea into Python you can run.
The complete math and logic foundation with Python in every chapter, ending in a hands-on Python part.
Math & Logic for Coders contains the same 64-chapter path as The Math & Logic Foundation, from order of operations, place value and primes to truth tables, Boolean algebra, sets, functions, modular arithmetic, matrices, trigonometry, geometry, calculus and number bases. Each of those chapters adds a From Concept to Code section that writes the idea as Python you can run yourself. A final part of nine chapters then takes you from the REPL and print() through variables, types, operators, conditionals, loops, functions and collections to small working programs. A complete beginner can start at page one; a professional shoring up foundations can drop in where they need to.
The moment you understand a concept you can watch it run as real code.
Real pages from the book. Select a page to open it at full size.
Each chapter explains why an idea is true before showing how to use it, then backs it up with worked examples, mental-math shortcuts, the common mistakes to sidestep and a short quiz, with full answers at the end of the chapter. The From Concept to Code section then writes the same idea as Python, so you can check your understanding by running it. Every subject is broken into small building blocks, arranged so that each one rests on the ones before it.
Nothing is assumed. A complete beginner can start at page one: the math begins with order of operations, and the final part introduces Python from the REPL and print().
Work through the parts in order; each one assumes the ones before it. The book's advice is to take the quizzes seriously and give each block the time it needs, because the goal is to understand rather than to finish quickly. If you are shoring up foundations, the building-block layout lets you drop into the part you need.
Why a rule is true, before you are asked to use it.
The precise meaning of each term or rule, set apart in a tinted box.
Problems solved in numbered steps; try each one yourself first, then check.
Mental-math shortcuts, and the traps most learners fall into.
A few questions to lock in the idea, with full answers at the end of the chapter.
The same idea written as Python you can run yourself.
Yes. Nothing is assumed. A complete beginner can start at page one: the math begins with order of operations, and the final part introduces Python from the REPL and print(). It is written for self-study and builds up step by step.
Work through the parts in order; each one assumes the ones before it. The book's advice is to take the quizzes seriously and give each block the time it needs, because the goal is to understand rather than to finish quickly. If you are shoring up foundations, the building-block layout lets you drop into the part you need.
Math & Logic for Coders is a 698-page PDF. Checkout is handled by Stripe. When payment completes, the receipt page gives you a private download link, and the same link is sent to the email address you used at checkout.
Yes. It is a standard PDF you can read on a computer, tablet or phone, online or offline. It is a one-time purchase for $20 with no subscription, and the file is yours to keep.
Each link works once and shows when it expires, so save the PDF when the download finishes. If a download fails or a link has expired, email support@macossoftware.com with your Stripe receipt and we will help.
Numbers, algebra and logical thinking, built step by step
A friendly foundation for arithmetic, algebra, functions, truth tables, Boolean logic, trigonometry, geometry, calculus and number bases.
A guided course from first program to real projects
A complete Java course built around executed projects, exact output, traceable reasoning, and practical programming habits.
A guided course from first program to real projects
A complete Python course built around runnable examples, exact output, construction habits, quizzes, and answer keys.
From NumPy and machine learning to neural networks, transformers and LLM apps, project by project
A project-based path from data foundations to modern AI engineering: 209 practice projects with code, exact output, quizzes and answer keys.