Source: https://f2school.com/wp-content/uploads/2019/09/Electronique-Numérique-TD-1.pdf