Issue 1065

Resolves issue #1065 by updated the simpson_e calculation.