We can rearrange the given equation as:
main.m80 chars5 lines
where I
is the identity matrix of the same size as x
.
Now, we can solve for x
as follows:
main.m137 chars5 lines
Note that since x
is a matrix, cube root will not work on its own, and we must use nthroot
to find the cube root of each element separately.
Final solution for x
is:
main.m38 chars3 lines
gistlibby LogSnag