Source: https://www.tarbiaprof.com/download/math/1coll/cour/M%C3%A9diatrice%20d%E2%80%99un%20segment%20-%20in%C3%A9galit%C3%A9.pdf