Source: http://www.est-usmba.ac.ma/coursenligne/GE-S2-M8.2-%20Automatismes%20%20L&I%20-TD-%20correction%20Ex%205-Serie%202-EL%20Hammoumi.pdf