Horje
how to return the derivative of a function in python Code Example
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)
python calculate derivative of function
from sympy import Symbol, Derivative

x= Symbol('x')

function= x**4 + 7*x**3 + 8

deriv= Derivative(function, x)
deriv.doit().subs({x:4})





Python

Related
get list input from user in python Code Example get list input from user in python Code Example
print whole dataframe python Code Example print whole dataframe python Code Example
how to clear the console python Code Example how to clear the console python Code Example
how to send get request python Code Example how to send get request python Code Example
python split pdf pages Code Example python split pdf pages Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8