Message Boards Message Boards

2 Replies
1 Total Likes
View groups...
Share this post:

A package or built-in function for algorithmic/automatic differentiation?

Posted 5 months ago

Is there some package or built-in function in Mathematica for algorithmic/automatic differentiation? I'm thinking something with the capabilities of JAX or Autograd for Python. For example, if I have some complicated Python function involving compositions of mathematical functions, control flow statements, etc., JAX and Autograd can compute its derivative at different inputs. Is there some way to do this in Mathematica short of writing a package for it myself?

POSTED BY: William Wright
2 Replies

There have been some past discussions about this:

You can implement various forms of automatic differentiation in the language:

If you are referring to autodifferentiation of neural networks...the current system (as of 14.0) based on MXNet does not seem to support doing this.

POSTED BY: Joshua Schrier
Posted 5 months ago

Much appreciated; the dual number package was very helpful.

POSTED BY: William Wright
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract