# 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.

```{admonition} The formal course is taught in Polish
:class: note
All official information about the course — schedule, rooms, groups, assessment and grading, the
syllabus — exists only in the Polish originals:
[strona kursu](https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/) ·
[Warunki zaliczenia](https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/book/zaliczenie.html) ·
[Harmonogram](https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/book/harmonogram.html) ·
[Sylabus w skrócie](https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/book/sylabus.html) ·
[sylabus przedmiotu (PDF)](https://sylabus.amu.edu.pl/pl/document/ed0ab940-0333-4b7e-b871-8a8521c18054.pdf) ·
[USOS](https://usosweb.amu.edu.pl/kontroler.php?_action=katalog2/przedmioty/pokazPrzedmiot&kod=06-S1MA03-P16780)
(in Polish).
```

```{admonition} Website of the English edition
:class: tip
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 `.ipynb` file to run in VS Code
  (see {doc}`wyklady/w01_1_srodowisko`). 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](https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/en/slides_index.html)
  and [interactive applets](https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/en/applets/index.html).
* The chapter {doc}`richardson/richardson` also has a
  [printable PDF version](https://bnaskrecki.faculty.wmi.amu.edu.pl/math-comp/en/pdf/richardson_pelny_dowod.pdf):
  the same text, numbering, computed results and problems, in a single file.
* The deep dive {doc}`ieee754/ieee754` has its own set of computer exercises:
  {doc}`laboratoria/lab03_ieee754`.
* The deep dive {doc}`python/python` 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 {doc}`okrag/okrag` 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](https://bnaskrecki.faculty.wmi.amu.edu.pl/peano-lab/) (in the browser) and optionally Lean 4.
See {doc}`zasoby/narzedzia`.

---

*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.*
