Sympy

来自Shiyin's note
跳到导航 跳到搜索
>>> from __future__ import division
>>> from sympy import *
>>> x, y, z, t = symbols('x y z t')
>>> k, m, n = symbols('k m n', integer=True)
>>> f, g, h = symbols('f g h', cls=Function)
>>> expr=(x+y)**3
>>> expr.expand()