Not-o-matic Differentiation
ajknapp.github.io
ajknapp.github.io
As opposed to ordinary symbolic differentiation or numerical differentiation, automatic differentiation is a method that takes the code of a function and a value and returns the derivative of the function at run time.
Of course, the author is working with a vector library and so his version will take N-dimension vectors/tensors and a functions of these and return N+something dimension vectors/tensors. That part is kind of head spinning and I assume that's where things fell apart.
(Your comment reads quite uncharitable/mean btw, hard to tell if it was intentional)
Really? I didn't get that at all. Was it edited?
pow x 0 = 1
pow x n = x * pow x (n-1)
ergo
pow' x 0 = 0
pow' x n = pow x (n-1) + x * pow' x (n-1)
ergo
pow' x 1 = pow x 0 + x * pow' x 0
= 1 + x * 0
= 1
pow' x 2 = pow x 1 + x * pow' x 1
= x + x
= 2 * x
pow' x 3 = pow x 2 + x * pow' x 2
= x * x + 2 * x * x
= 3 * x * x