https://perl.pythonprogramminghelp.com/3unbelievable-stories-of-the-mean-value-theorem/