Free module
Discrete maths and logic
Learn discrete maths hands on: truth tables, sets, counting, functions, graphs and modular arithmetic, each checked in Python.
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 · Virtual machine lab
Truth tables and logical equivalence
I can build a truth table and decide whether two statements are equivalent.
Read the lesson2 · Virtual machine lab
Sets: union, intersection and difference
I can combine sets and count their members.
Read the lesson3 · Virtual machine lab
Counting: permutations and combinations
I can count choices and arrangements.
Read the lesson4 · Virtual machine lab
Functions: one to one and onto
I can say whether a mapping is a function, one to one or onto.
Read the lesson5 · Virtual machine lab
Graphs, paths and trees
I can describe a network as a graph and find a path.
Read the lesson6 · Virtual machine lab
Modular arithmetic, gcd and primes
I can use remainders, the gcd and primes.
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.