Question: how transform equations in matrix?

Hello everybody,

 

#Is there an automatic way to transform equations like this

(-42.62500000*omega^2+1400.)*A[1]+(-12.00000000*omega^2-1000.)*A[2] = 0;
(-12.00000000*omega^2-1000.)*A[1]+(-5.475000000*omega^2+1000.)*A[2] = 0;

#in a matrix like that?

C := Matrix(2, 2, {(1, 1) = -42.62500000*omega^2+1400., (1, 2) = -12.00000000*omega^2-1000., (2, 1) = -12.00000000*omega^2-1000., (2, 2) = -5.475000000*omega^2+1000.});

without copy/paste each element?

Thank you,

Ternox

Please Wait...