Modified the Euler-MacLaurin algorithm. Fixed issue #8504

Modified the Euler-MacLaurin algorithm. Prior to the commit, the algorithm would break in cases where the expression was equivalent to 0. Now, the algorithm will continue to work until the intended end of range. Fixes several issues, including issue #8504. Also gets close to solving issue #8321 previously returning 0 where as now returning a very large number.

collaboration with @Mitchell-McCann