Free module
Calculus and optimisation for computing
Learn calculus and optimisation hands on: slopes, derivatives, gradients, gradient descent and least squares line fitting, worked in Python notebooks.
The lessons
Each lesson is free to read in full. Create a free account to run its commands in a live lab and to sit its quizzes and tasks.
1 · Container lab
Rate of change and slope
I can estimate how fast something changes from numbers.
Read the lesson2 · Container lab
Derivative rules for polynomials
I can use the rules for the derivative of a simple function.
Read the lesson3 · Container lab
Partial derivatives and the gradient
I can find the gradient of a function of two variables.
Read the lesson4 · Container lab
How gradient descent works
I can minimise a function by stepping downhill.
Read the lesson5 · Container lab
Least squares line fitting
I can fit a line to points by minimising the squared error.
Read the lesson6 · Container lab
Local minima and SciPy optimisers
I can use SciPy's optimiser and say when descent gets stuck.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.