So I was trying to formulate some matrix out of another matrix's elements using sympy. But while the taking the inverse it didn't work I believe cause of the complicity of the matrix I am taking the inverse of.
x0, x1, x2, x3 = smp.symbols('x^0 x^1 x^2 x^3')
COORDS = [x0, x1, x2, x3]
N = len(COORDS)
g00 = smp.Function('g00')(x0, x1, x2, x3)
g01 = smp.Function('g01')(x0, x1, x2, x3)
g02 = smp.Function('g02')(x0, x1, x2, x3)
g03 = smp.Function('g03')(x0, x1, x2, x3)
g10 = smp.Function('g10')(x0, x1, x2, x3)
g11 = smp.Function('g11')(x0, x1, x2, x3)
g12 = smp.Function('g12')(x0, x1, x2, x3)
g13 = smp.Function('g13')(x0, x1, x2, x3)
g20 = smp.Function('g20')(x0, x1, x2, x3)
g21 = smp.Function('g21')(x0, x1, x2, x3)
g22 = smp.Function('g22')(x0, x1, x2, x3)
g23 = smp.Function('g23')(x0, x1, x2, x3)
g30 = smp.Function('g30')(x0, x1, x2, x3)
g31 = smp.Function('g31')(x0, x1, x2, x3)
g32 = smp.Function('g_32')(x0, x1, x2, x3)
g33 = smp.Function('g_33')(x0, x1, x2, x3)
g = smp.Matrix([[g00,g01,g02,g03],[g10,g11,g12,g13],[g20,g21,g22,g23],[g30,g31,g32,g33]])
and when I do g.inv()
the kernel just doesn't finish. What should I do in order to take this matrix's inverse? Thank you so much in advance :)