I have made a code for performing symbolic derivation in python as below:
import numpy as np import sympy as sym # coeffs = [2, 0, 1] # p = np.poly1d(coeffs[