integral from 0 to 1 f(x)= function (x) { n++; return Math.log(x); } adapt integral = -0.9998879113990891 strata integral = -0.9999314506761938 exact integral = -1 adapt estimated error = 0.00008832972893686137 adapt actuall error = 0.0001120886009109423 strata estimated error= 0.00007017783269945891 strata actuall error = 0.0000685493238061774 adapt npoints = 64 strata npoints = 14136 integral from 0 to 1 f(x)= function (x) { n++; return Math.sqrt(1 - (x - 1) * (x - 1)) * 4; } exact integral = 3.141592653589793 adapt integral = 3.141593091537317 strata integral = 3.1415933413845663 adapt estimated error = 0.0000018291921159929118 adapt actuall error = 4.3794752402348536e-7 strara estimated error= 7.005535215920018e-7 strata actuall error = 6.877947731354084e-7 adapt npoints = 236 strata npoints = 148614 integral from 0 to 1 f(x)= function (x) { n++; return x < 0.3333333333333333 ? 1 : 0; } exact integral = 0.3333333333333333 adapt integral = 0.25 strata integral = 0.3333333336437742 adapt estimated error = 0 adapt actuall error = 0.08333333333333331 strara estimated error= 6.782340082254436e-10 strata actuall error = 3.1044089521259366e-10 adapt npoints = 8 strata npoints = 952