In [6]:
from sympy.abc import*
from sympy import *
from sympy import MatrixSymbol, Identity
init_printing(use_latex=True) #For good look equations
A = Matrix([[a,b,c],[d,e,f],[g,h,i]])
A
Out[6]:
In [7]:
det(A)
Out[7]:
In [ ]:
f = Matrix([cos(th), sin(th), 0])
g = Matrix([0, 0, 1])
xvector = [x,y,th]
In [43]:
lie_bracket(f,g,xvector)
Out[43]:
In [44]:
span = bracket_span([f,g],xvector)
span
Out[44]:
In [48]:
span = list2matrix(span)
span