Skip to content

Instantly share code, notes, and snippets.

@elcritch
Created June 30, 2015 18:25
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 elcritch/0f1ed4de3e4c82b4abb6 to your computer and use it in GitHub Desktop.
Save elcritch/0f1ed4de3e4c82b4abb6 to your computer and use it in GitHub Desktop.
Example of numerical differentiation in Julia – Quick mental verification
xr = 0:0.5:2π
plot( xr, sin(xr) )
plot( xr[1:end-1], diff(sin(xr)) ./ diff(xr) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment