This function takes the gradient of f using finite differences
vector with N samples
scalar of time samples
g vector with N samples which is the gradient of f
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.