Skip to content

Instantly share code, notes, and snippets.

@jdh30
Created February 25, 2017 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdh30/87af2ba03f653006156246393c964b22 to your computer and use it in GitHub Desktop.
Save jdh30/87af2ba03f653006156246393c964b22 to your computer and use it in GitHub Desktop.
A symbolic derivative written in my own term rewrite language
D(x, y) -> 0
D(x, x) -> 1
D(f+g, x) -> D(f, x) + D(g, x)
D(f*g, x) -> f*D(g, x) + g*D(f, x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment