Refactoring of the interval, test with exp(x) successful