Taking Derivatives in Python
Published in
7 min readOct 7, 2019
The idea behind this post is to revisit some calculus topics needed in data science and machine learning and to take them one step further — calculate them in Python. It’s really simple once you get the gist of it, and you don’t need to worry about memorizing differentiation rules.
This post will be based on a Python library called SymPy, and here’s a short introduction on it (if you haven’t used it before):