improved evaluating e^x for maintainability