Integral Error in Signal

A rough approach: epip.py (1.2 KB)
An exact approach (the second macro therein):