Fast, transparent, calculations of first and second-order automatic differentiation