Hi, and welcome to the forum.
Calc is probably the wrong tool for this. There is support for complex numbers, and there is support for matrix operations, but they don't really work well together. For example, you can multiply two complex numbers with IMPRODUCT, and you can multiply two real matrices with MMULT, but you can't multiply two complex matrices. That's because the complex number functions don't handle matrices and the matrix functions don't handle complex numbers. To the best of my knowledge, the situation is the same in other common spreadsheet packages including Excel and Gnumeric. (There is no IMMMULT function and I don't think any of the
OpenOffice.org extensions help.)
What you need is a tool that supports mathematics, like APL or Mathematica.
But if you are willing to do some work, you can get Calc to give you the answer. Let's call your complex matrix (of dimension NxN) M. Separate it into its real and imaginary components R and J, each of which is also NxN, and then obtain S as J divided by i, so R and S contain only real numbers and M = R+Si. Create Q, a 2Nx2N real matrix:
Use Calc's MINVERSE function to find Q inverse, also of dimension 2Nx2N. Separate Q inverse into four NxN quadrants:
Then M inverse is A+Bi. Note, though, that you won't be able to multiply M by M inverse to verify that you get the identity matrix because Calc doesn't provide support for multiplying complex matrices. Actually, you could also do that with some additional work. Say we want to multiply M by P, both complex, both NxN. Separate M into R+Si and P into T+Ui where R, S, T, and U are all real matrices. Then calculate (using MMULT to multiply) X=R*T-S*U and Y=R*U+S*T and the product M*P is X+Yi.
If this answered your question please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.