Input: code compute a function Output: code compute the derivative of the function

Actual implementations of this at Autograd and Jax

AD writes functions as sequence of compositions block , and then computes the derivative of the function by applying the chain rule.