0
Measure the Discrepancy
code-golfmathsequence
Given a finite sequence of real numbers \$ s_1, s_2, \ldots, s_n\$ and an interval \$I=[a,b]\$ that contains the whole sequence, find its discrepancy \$D_n\$.
Definition*
Let \$I = [a,b]\$ be an interval that covers the whole sequence \$(s_i)_i\$,...