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)
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})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us