from sympy import * x = Symbol("x") diff(x**3+x,x) #output: 3*x**2 + 1
# 一维多项式操作 from numpy import poly1d