1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| 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) init_printing()
Ms = MatrixSymbol('Ms', 3, 3)
f.subs(x, VALUE) f.subs({x: }) f.subs({Ms: }).doit() POLY(VALUE) EXPR.evalf(n)
f.expand() expand(f) f.simplify() simplify(f) f.factor() factor(f) f.as_expr()
solve(x-y+1, (x,y)) limit(x**x,x,0) limit(1/x,x,oo,dir='+') Derivative(f,x,x,y,z) f.diff(f,(x,2),y,z) integrate() dsolve()
gcdex()
A.exp()
A.jordan_form() A.is_positive_semidefinite() A.QRdecomposition() A.LUdecomposition() A.LUdecomposition_Simple() A.LDLdecomposition(hermitian=True) A.cholesky(hermitian=True) A.bidiagonal_decomposition() A.singular_value_decomposition()
A.eigenvals() A.eigenvects() A.left_eigenvects() A.singular_values()
|