3 ms·
Automatic Differentiation in 26 lines of Python
- montebicyclelo 4y agoInspired by "Automatic Differentiation in 38 lines of Haskell", https://news.ycombinator.com/item?id=32879734 https://news.ycombinator.com/item?id=32879734
- tempodox 4y agoFunny, I find this harder to grok than the Haskell version. Haskell's static typing helps a lot.
- montebicyclelo 4y agoMaybe familiarity with the languages? Though there probably is room to make this code more readable, without costing too many LOCs.