Added some calculus functions to the library; I've already run into a
situation where I needed a numerical solution so this seemed
appropriate.