Inspired by the recent posts on implementing forwards mode automatic differentiation, here's an attempt at the backwards mode, which is often more efficient when your function depends on many variables but outputs just one value.
Show HN: Backwards automatic differentiation in ~100 lines of Python | Heykuki News