Skip to content

Instantly share code, notes, and snippets.

@abdalimran
Created November 13, 2017 16:02
Show Gist options
  • Save abdalimran/494425ce63e3767a59de73004fa6b353 to your computer and use it in GitHub Desktop.
Save abdalimran/494425ce63e3767a59de73004fa6b353 to your computer and use it in GitHub Desktop.
import sympy as sp
x = sp.Symbol('x')
f = x**2 + 5
f_prime = f.diff(x)
print(f_prime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment