Forward-mode automatic differentiation with Dual number system