Field notes and maths map

Use the course in sequence, or revisit the prerequisites for the mathematical task in front of you.

Before you start

You should be able to read Python variables, function calls, lists and a short loop. The examples use import sympy as sp consistently. Each script is complete and starts from fresh user variables; it does not depend on hidden state from earlier lessons.

There are 48 core investigations in eight modules and four optional integrated workshops. Most initial passes take 6–9 minutes for reading, a prediction, execution and a transfer question. Allow more time for modifications, debugging and your own investigation. The core’s authored estimates total about 6 hours; this is guidance, not an observed completion-time study.

Start at the beginning if symbolic Python is new to you. The core introduces mathematics as it becomes useful, and every lesson has a closed-by-default maths refresher: a short explanation, one equation and a worked example. A panel is a local reminder, not a complete prerequisite textbook. The map below identifies where the course introduces each area so you can revisit it.

Predict before running, inspect both the expression and its assumptions, then change one thing. The results dictionary labels expressions to typeset. The final print loop keeps the downloaded script useful in ordinary Python. Your actual output is separate from the build-executed worked example.

You can read every lesson, open its refresher and inspect worked results without JavaScript. Live Python, feedback, local drafts and exports require JavaScript. There is no account or paid service.

How the maths builds

Each module states its prerequisites. Open the refresher in the relevant lesson whenever its notation or underlying idea needs a reminder.

A few useful starting reminders

A useful domain reminder is:

x2=∣x∣(x∈R),p2=p(p>0)\sqrt{x^2}=|x|\quad(x\in\mathbb R),\qquad\sqrt{p^2}=p\quad(p>0)

The assumptions are part of the mathematical statement, not a display preference.

What actually runs?

CPython runs on your device through Pyodide 0.27.7 in a Web Worker, using SymPy 1.13.3, mpmath 1.3.0, NumPy 2.0.2 and Matplotlib 3.8.4. Build-executed examples use the same SymPy, mpmath and NumPy versions, with Matplotlib 3.9.4. Build versions · Runtime manifest.

The first Run downloads a substantial Python and package payload. Opening a lesson does not start Python. Runtime packages are pinned, hash-checked during the build and served from this site. KaTeX 0.16.22 typesets actual SymPy LaTeX; its files and fonts are served locally too. Browser caching helps subsequent use, but full offline operation is not provided.

Every run starts with fresh user variables. Imported modules remain loaded, and figures are cleared. Stop terminates the worker; the next Run starts a fresh runtime. Initialisation has a two-minute limit and execution a 45-second limit. An error leaves the code editable. In Tools, select Restore example to open the published code. Recover draft brings back the most recently replaced draft.

Code is executed locally, not submitted to a Python server. There is no analytics or account backend. Python code can still access browser-permitted network resources. Only run code you understand. SymPy parsing and lambdify are not isolation boundaries for arbitrary untrusted external expressions.

Maths, text and figures

Assign a dictionary named results to label expressions for mathematical rendering. The worker displays up to 50 labelled results with bounded LaTeX length. Find printed results under Python text output. Execution errors have a separate message and optional technical details. Generated plots appear below. Large equations scroll within their own region, and worked figures can be opened at full size.

SymPy sometimes returns an unevaluated object, ConditionSet or a conditional expression. Inspect that meaning instead of assuming every result is a complete elementary answer. A computed identity checks mathematics under assumptions; it does not establish empirical validity.

Drafts and exports

Code, predictions, notes, report fields, answer attempts, refresher state and reading marks save in this browser when storage is available. Clearing site data removes saved copies. Export progress from the overview and import it into another browser to replace matching records while keeping other saved entries. Reading marks are self-reported reading, not mastery; workshop marks are excluded from the core’s 48-lesson count.

The page keeps the last successful result until another run succeeds or you leave. Run JSON preserves the exact executed source, text output, labelled LaTeX and expression text, SVG figures and runtime versions. Editing the code after execution does not change that record. The Markdown report combines current report fields with the last successful run. Save the run JSON alongside the report to retain figures. Progress export includes saved drafts and the most recently replaced draft. Export run saves execution results.

Run locally

python -m pip install sympy==1.13.3 mpmath==1.3.0 numpy==2.0.2 matplotlib==3.9.4
python downloaded-investigation.py

The script prints its labelled results without needing the site. Add plt.show() or plt.savefig("figure.svg") to view or save Matplotlib plots in ordinary Python.

A working glossary

Expression / equation
An expression represents a quantity or rule. An equation asserts equality between expressions. In SymPy, Eq represents symbolic equality; Python = assigns a name and == compares structure.
Symbol / assumption
A Symbol represents an unspecified quantity with metadata. Assumptions restrict its permitted values and affect which transformations are justified.
Domain
The permitted set of inputs. Original exclusions can survive a transformation even when they are no longer visible in the simplified expression.
Exact / approximate
Exact integers, rationals and symbolic constants preserve mathematical definitions. A Float is a finite-precision approximation. Neither establishes the accuracy of a real-world measurement.
Identity / structural equality
An identity holds throughout a stated domain. Structural equality compares representations. A difference that simplifies to zero is a useful identity check; failure to do so is not a general proof of inequality.
Solution set
The collection of inputs satisfying a problem in its stated domain. EmptySet means no solutions in that domain; ConditionSet can express a condition not resolved into a simpler set.
Residual
The difference between the two sides of an equation, evaluated at a candidate. Zero verifies an exact equation under the calculation’s assumptions; a small numerical residual needs conditioning-aware interpretation.
Function / composition
A rule mapping permitted inputs to outputs. Composition applies one rule to the result of another, and the order generally matters.
Limit / value
A limit describes behaviour near an input. The value describes the function at that input. They need not both exist or be equal.
Derivative / partial derivative
Local rate of change with respect to one variable / local change while other independent coordinates remain fixed.
Antiderivative / definite integral
A function whose derivative is the integrand, up to constants on suitable intervals / an accumulated signed quantity over stated bounds, with convergence requirements where applicable.
Taylor series / order term
An expansion around a specified point. Its order term describes asymptotic remainder behaviour; it is not a universal numerical error bound.
Rank / inverse
Rank counts independent directions in a matrix. A square matrix is invertible precisely when it has full rank over its scalar field.
Eigenvector / eigenvalue
A nonzero direction v satisfying A*v=lambda*v and its corresponding scalar. Vector scale is not unique; a full independent eigenvector basis is not guaranteed.
ODE / initial condition
An equation relating a function to derivatives in one independent variable / information specifying the function or its derivatives at a stated input.
Jacobian / covariance
The matrix of first partial derivatives / a matrix describing joint input variation. J*Sigma*J.T is a local first-order covariance approximation for a nonlinear map.
Precision / accuracy
Precision describes carried digits or stated resolution. Accuracy concerns agreement with an appropriate target. More printed digits cannot restore lost input information or validate a model.
Monte Carlo standard error
Estimated numerical variability of an estimator across repeated simulations. For an independent finite-variance sample mean, estimate it with sample SD divided by square root of sample count.

Sources & acknowledgements

The examples, refreshers and exercises are authored for this course. Method references link to the official SymPy documentation; the executable package version is pinned independently of the documentation’s latest release.

The readable learning shell draws on the author’s Scientific Method Lab and Monte Carlo Lab. Assembly Lab informs the bite-size investigation pattern, and Event Streaming Lab informs the browser editor and worker approach. Code is Apache-2.0; original course prose is CC BY-NC 4.0. Fonts and packages retain their licences; KaTeX licence.

Automated native and browser checks, plus author review, are documented in the repository. They do not establish learning effectiveness. The course and its refresher panels have not yet been evaluated in a study with learners.

Further study

This route builds practical foundations. Further topics include formal convergence and error bounds, deeper complex branches, advanced assumptions, symbolic units, special functions, multivariate integration, differential geometry, larger ODE systems and production code generation. Consult the relevant primary documentation and mathematical references when a problem exceeds these small models.

Back to the course ↗