Think symbolically
Basic Python; optional algebra refreshers are included.
Start this module ↗Use the course in sequence, or revisit the prerequisites for the mathematical task in front of you.
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.
Each module states its prerequisites. Open the refresher in the relevant lesson whenever its notation or underlying idea needs a reminder.
Basic Python; optional algebra refreshers are included.
Start this module ↗Module 1: expressions, substitution and assumptions.
Start this module ↗Modules 1–2: exact expressions and transformations.
Start this module ↗Modules 1–3; each new mathematical idea has a refresher.
Start this module ↗Modules 1–4; calculus prerequisites are refreshed as needed.
Start this module ↗Modules 1–3; matrix notation is introduced here.
Start this module ↗Calculus from module 5; matrices for the final sensitivity lesson.
Start this module ↗The earlier modules relevant to your chosen application.
Start this module ↗A useful domain reminder is:
The assumptions are part of the mathematical statement, not a display preference.
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.
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.
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.
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.
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.
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.