2 ms·
googling i found https://gist.github.com/amalex5/541dc739201bbd8e26037b6738cdf75b https://gist.github.com/amalex5/541dc739201bbd8e26037b6738cd... although it's
by kragen 4y ago
googling i found https://gist.github.com/amalex5/541dc739201bbd8e26037b6738cdf75b https://gist.github.com/amalex5/541dc739201bbd8e26037b6738cd... although it's missing the type declaration
http://5outh.blogspot.com/2013/05/symbolic-calculus-in-haskell.html http://5outh.blogspot.com/2013/05/symbolic-calculus-in-haske... is more complete and also includes an explanation and a bunch of algebraic simplifications you'd usually want along with the symbolic differentiation itself