Member-only story

Calculate Derivatives using Python

Python Coding
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

--

--

Python Coding
Python Coding

Written by Python Coding

Learn python tips and tricks with code I Share your knowledge with us to help society. Python Quiz: https://www.clcoding.com/p/quiz-questions.html

No responses yet