Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #return #derivative #function #python
ADD COMMENT
Topic
Name
4+2 =