
_START_ARTICLE_
SymPy
_START_SECTION_
用例
_START_PARAGRAPH_
求的积分：_NEWLINE_>>> from sympy import init_printing, integrate, log, sqrt, symbols>>> init_printing()>>> x = symbols('x')>>> g = sqrt(x + log(x))>>> f = (x ** 2 + 2 * x + 1 + (3 * x + 1) * g) / (x * g * (x + g))>>> f_NEWLINE_ 2           ____________              _NEWLINE_x  + 2⋅x + ╲╱ x + log(x) ⋅(3⋅x + 1) + 1───────────────────────────────────────_NEWLINE_   ⎛      ____________⎞   ____________ _NEWLINE_ x⋅⎝x + ╲╱ x + log(x) ⎠⋅╲╱ x + log(x)  _NEWLINE_>>> integrate(f, x)_NEWLINE_    ____________        ⎛      ____________⎞2⋅╲╱ x + log(x)  + 2⋅log⎝x + ╲╱ x + log(x) ⎠