chickadee » AD » derivative-F

derivative-R fprocedure
derivative-F fprocedure

These take a function f from a real number to a real number and produce a function which returns the derivative of f. Both forward and reverse mode are supported.