Komputerowe rozwiązywanie problemów matematycznych — English edition#
“The purpose of computing is insight, not numbers.” — Richard W. Hamming
This is the English edition of the course book of Komputerowe rozwiązywanie problemów matematycznych, a course taught in Polish to second-year mathematics students at Wydział Matematyki i Informatyki, Uniwersytet im. Adama Mickiewicza w Poznaniu, in the winter semester 2026/27. The book contains the full text of the lectures with formulas, executable code and links, the problem sets for the labs, and supporting material. The English edition is shared freely with readers everywhere.
The formal course is taught in Polish
All official information about the course — schedule, rooms, groups, assessment and grading, the syllabus — exists only in the Polish originals: strona kursu · Warunki zaliczenia · Harmonogram · Sylabus w skrócie · sylabus przedmiotu (PDF) · USOS (in Polish).
Website of the English edition
Home page with slides and applets: https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/en/
About the course#
We learn to use the computer as a mathematician’s tool — in three roles:
numerics: floating-point numbers, iterative methods, interpolation, numerical integration;
symbolic computation: exact computation in computer algebra systems — SymPy and SageMath — with polynomials, rational functions, recurrences, sums and matrices;
visualization: plots of continuous and discrete data, cellular automata, L-systems, fractals.
One question runs through the whole course: what do we actually know after a computation? That is why, from the first lecture on, we compare a numerical result, a symbolic one and a formal proof checked by a computer.
How to use this book#
The chapters are Jupyter notebooks — the code in them was executed when the book was built, so you see real results. The download icon at the top of a page gives you the
.ipynbfile to run in VS Code (see Working environment: VS Code, Python, Jupyter, SymPy, and SageMath). Code, function names and program output are exactly as in the Polish original, so some comments and printed messages are in Polish.Each lecture comes with slides and interactive applets.
The chapter Richardson’s theorem: why a computer cannot recognize every zero also has a printable PDF version: the same text, numbering, computed results and problems, in a single file.
The deep dive IEEE 754: floating-point numbers from the inside has its own set of computer exercises: Lab 3: Floating-point arithmetic — IEEE 754 in practice.
The deep dive Pythonic laziness: good practice and fast code shows, on examples from the course, how to write fast Python code. The running times in it are measured at every build of the book.
The deep dive The circle group: purely symbolic proofs uses a single algebraic group to show how to prove theorems by symbolic computation: from the group axioms through Chebyshev polynomials and Gauss’s 17-gon to Lie groups.
Tools#
Python 3.12+, VS Code, Jupyter, SymPy, NumPy, Matplotlib, mpmath, SageMath, and for formal proofs Peano Lab (in the browser) and optionally Lean 4. See Tools and links.
The materials were co-created with an AI assistant (Claude); the author is responsible for their content. The English edition is a translation of the Polish original. Please report errors to the author.