First of all, You have to take an input of two matrices let's say Matrix K and Matrix M and the order of Matrix will be decided by the user.
Then matrix m should be multiplied by a variable x after that you have to subtract the matrix m from k matrix like |K-MX| and evaluate the determinant and put that equal to zero.
The resultant Determinant will be in equation form and you have to evaluate the values of x and print them on the screen.
and then also you have to print the square root values of x.
I want to create a web application of this calculator you just have to prepare the back end because front end is already done.