parrt / autodx

Simple automatic differentiation via operator overloading for educational purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autodx

Simple automatic differentiation via operator overloading for educational purposes; it's really just a playground for me at the moment and the structure of the repository is not great.

Requires graphviz (dot executable) to be installed on your machine and also the python package installed with pip install graphviz. I had to do (on mac)

brew install graphviz --with-pango

to get the cairo support for subscripts in the graph visualizations.

For y = f(x1,x2) = ln(x1) + x1 * x2 - sin(x2):

Forward

Backward

About

Simple automatic differentiation via operator overloading for educational purposes

License:MIT License


Languages

Language:TeX 37.4%Language:Jupyter Notebook 34.0%Language:Python 28.5%