I want to find the characteristic equation of a matrix . I`m aware of how it is done mathematically but how do I display it in the form of an equation ? eg : Given matrix :
3 7 9
8 6 2
1 8 6
now if suppose the parameter is , say "b"; my next step is to do this ;
3-b 7 9
8 6-b 2
1 8 6-b
till here I can only display by doing this :
printf("%d - %c ", a[i][j],98);
but then how do I find this determinant of matrix from here ?? my final equation should be of form like
b^3 + 3b^2 - 4b +5 =0
and all of this simplification should be done in the program. Can this be done in C ? If not , is there any other way or language that makes this simplification possible ? I don`t want to just display a character , I want it to be involved in the calculation and remain intact in the final answer. Thanks .