SymPy Lab

Symbolic maths with Python

Learn symbolic algebra, calculus and modelling with real Python and optional maths refreshers.

48 short lessons · 4 optional workshops · Python in your browser

0 / 48 readReading progressReading marks are saved on this browser and do not indicate mastery.
See the structure of an expressionAn algebra notebook divides a square into x squared, x, x and one, with a pencil beside it. It illustrates expansion of the square of x plus one using nonnegative area lengths.(x + 1)²x²xx1Σ

Course contents

52 investigations
01

Think symbolically

6 lessons
02

Shape an expression

6 lessons
03

Solve and check

6 lessons
04

Work with functions

6 lessons
05

Explore calculus

6 lessons
06

Use symbolic linear algebra

6 lessons
07

Build mathematical models

6 lessons
08

Connect symbols to numbers

6 lessons
+

Optional workshops

4 investigations
See an example

How assumptions change a square root

Any complex z
z2  ⟶  z2\sqrt{z^{2}}\;\longrightarrow\;\sqrt{z^{2}}
Real x
x2  ⟶  ∣x∣\sqrt{x^{2}}\;\longrightarrow\;\left|{x}\right|
Positive p
p2  ⟶  p\sqrt{p^{2}}\;\longrightarrow\;p

Compare the three results. For any real x, the square root gives its magnitude, which may differ from x.

Executed SymPy · exact symbolic resultsExplore the idea
Save or restore your work

Export reading marks, notes and code drafts to use them in another browser.