I made a library of HOFs to calculate derivatives, summations, and definite integrals! I also made a simple block to act like a named argument.
They use tiny/huge numbers like 1e-10 or 1e10 to make approximations of the value. \frac{\text{d}}{\text{d}x} returns the derivative function, while \int returns the value of the definite integral. I'm also planning on writing an anti-derivative block as well.
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!