#範例2-8:建立函數表達式 from sympy import * txt = 'x**2 + 2*x + 5' formular = sympify(txt) print('formular=', formular)