Member-only story
Calculate Derivatives using Python
Oct 29, 2024
import sympy as sym
x = sym.Symbol('x')
func= input("Enter the function: ")
sym.Derivative(func, x)
d/dxlog(x)
Derivative of above function
sym.Derivative(func, x, evaluate=True)
1/x