I want to find the characteristic equation of a matrix. I know how to do it mathematically, but how can I display it in the form of an equation? for example: This matrix:
3 7 9
8 6 2
1 8 6
now, assuming that the parameter is, say, "b"; my next step is to do it;
3-b 7 9
8 6-b 2
1 8 6-b
so far I can only display this:
printf("%d - %c ", a[i][j],98);
but then how can I find this determinant of the matrix here? my final equation should look like
b^3 + 3b^2 - 4b +5 =0
and all this simplification should be done in the program. Can this be done in C? If not, is there another way or language that makes this simplification possible? I do not want to simply display the character, I want him to be involved in the calculation and remain untouched in the final answer. Thank.