Labs#

The labs (30 hours, i.e., 15 sessions of 90 minutes) are the hands-on part of the course: we solve problems at the computer — in Python, SymPy, and SageMath — working in Visual Studio Code with Jupyter notebooks. The problem sets accompany the lecture topics; for each lecture we usually prepare two sets.

The formal course, Komputerowe rozwiązywanie problemów matematycznych, is taught in Polish at WMI UAM. Its organization (lab groups, rooms, dates, homework submission in Moodle, grading) is described only on the Polish pages Harmonogram and Warunki zaliczenia.

Problem sets#

Further problem sets are in preparation.

Before the first session#

If you work on your own laptop, set up the environment before the session (≈ 15 minutes):

  1. install Visual Studio Code and the Python and Jupyter extensions (publisher: Microsoft),

  2. install Python 3.12 or newer,

  3. in your course folder, create a virtual environment and install the packages:

    python3 -m venv .venv              # Windows: py -m venv .venv
    source .venv/bin/activate          # Windows: .venv\Scripts\activate
    python -m pip install sympy numpy matplotlib ipykernel
    

Detailed instructions (Windows, macOS, Linux): Working environment: VS Code, Python, Jupyter, SymPy, and SageMath and Part 0 of the problem set Lab 1: VS Code, Jupyter, and Python as a mathematician’s calculator. If the installation fails, you can work in the browser during the session: the faculty’s JupyterHub server https://jupyter.wmi.amu.edu.pl (for WMI UAM students), CoCalc, or SageMathCell.

How we work#

  • Each problem set is a Jupyter notebook (.ipynb). Download it with the download button at the top of the set’s page and open it in VS Code.

  • Exercises are marked with stars: ★ — basic, ★★ — intermediate, ★★★ — optional challenges.

  • We work individually or in pairs and discuss selected solutions together.

  • Each set ends with exercises for independent practice.

We work in the spirit of computational thinking: abstraction (a precise formulation of the problem) → automation (a program) → analysis (checking and interpreting the result). The computer readily supplies examples and conjectures — but checking finitely many cases is not a proof. We will see this difference up close many times.

Tools#

Tool

What it is for

Where

Visual Studio Code + Jupyter

editor and notebooks

https://code.visualstudio.com

Python

programming language

https://www.python.org

SymPy

symbolic computation in Python

https://www.sympy.org

SageMath

a mathematical software system built on Python

https://www.sagemath.org, https://sagecell.sagemath.org

Peano Lab

formal proofs in Peano arithmetic (in the browser)

https://bnaskrecki.faculty.wmi.amu.edu.pl/peano-lab/