You may want to use Simpson’s rule for (usually) much better results. If you do, you’ll beat the (authorized) SciSnap! library at numerical integration, hands down.
Assuming you’re referring to a block reporting a function … you’re entering AI territory. Both interesting and challenging!