I added 2 operators '^'
the first one takes integer no. and return matrix , the second takes double and return double value
(for 1x1 matrix) .
I added power function that calculate
+ve , -ve & zero power for the matrix
I also added a new inverse function that use gauss to calculate inverse
(for more accuracy instead of cal. det. & cofactor & adjo. because if det. equal small value in matlab the det. method cal. it equal zero so for large -ve power the result was false so i used gauss for more accuracy ) .
Support power of matrices
Some hints :
Fraction power is supported only for matrices of 1x1 dimension.
Integer power is supported for all.
(^) means whole matrix power
Know that (m^c) will took long time if c is large, so optimize your code