Answers for "how to take derivatives with python"

4

how to return the derivative of a function in python

#This prints the derivative of a function
import sympy as sym
x = sym.Symbol('x')
function = x ** 4 + 7 * x ** 3 + 8
derivitive = sym.diff(function)
print(derivitive)
Posted by: Guest on August-18-2020

Code answers related to "how to take derivatives with python"

Python Answers by Framework

Browse Popular Code Answers by Language