Created
June 30, 2015 18:25
-
-
Save elcritch/0f1ed4de3e4c82b4abb6 to your computer and use it in GitHub Desktop.
Example of numerical differentiation in Julia – Quick mental verification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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