The companion

The Mathematics of AI Agents

Emergence, Decisions, Memory, Tools, Learning, and Cooperation

Every chapter of the book has an illustrated reader with four demonstrations built from its own equations. Predict, change one value, and watch the picture and the numbers move together. The same chapters also come as executed notebooks, a workbook with separate solutions, and an AI skill per chapter. No book text is included.

Start with Chapter 1
  • 27chapters
  • 108demonstrations
  • Freein your browser
A smooth rising curve and a step curve drawn over the same horizontal axis, labeled continuous score and exact-match score. continuous scoreexact-match scorescale

Chapter 1 begins here: one model, two scores, two very different stories.

How each demonstration works

Every demonstration follows the same path the book does, so you always know what comes next.

  1. Predict first

    Read the question and the equation from the chapter, then choose or make a guess. A wrong guess is useful.

  2. Change one value

    Pick from a short menu. The picture and the numbers update together, starting from the chapter's own example.

  3. Read the work

    Every state shows the calculation behind it, small enough to redo with a pencil.

  4. Check yourself

    Open the check question and the answer. Each demonstration names the section it came from.

Every chapter in one list

Guide page, notebook and chapter skill for each chapter.

Setup and recovery help: START-HERE. Running the notebooks needs Python and the packages listed there.