ahmedibrahim6 / AsuMathLabG03

C++ project describes MATLAB software
0 stars 1 forks source link

power function #9

Closed ahmedibrahim6 closed 6 years ago

ahmedibrahim6 commented 6 years ago

Support power of matrices

Some hints :

Arwa-Ibrahim commented 6 years ago
  1. I added 2 operators '^' the first one takes integer no. and return matrix , the second takes double and return double value (for 1x1 matrix) .
  2. I added power function that calculate +ve , -ve & zero power for the matrix
  3. 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 ) .