Borrar filtros
Borrar filtros

3 equations and 3 unknowns

1 visualización (últimos 30 días)
Philosophaie
Philosophaie el 17 de Sept. de 2013
Comentada: Walter Roberson el 11 de Dic. de 2013
I have 3 equations and 3 unknowns. Is there a way to solve for them?
4*x + 5*y + 6*z = 7
3*x + 2*y + 4*z = 5
2*x + 7*y + 5*z = 9

Respuestas (1)

Matt J
Matt J el 17 de Sept. de 2013
Editada: Matt J el 17 de Sept. de 2013
[4 5 6; 3 2 4; 2 7 5] \ [7;5;9]
  2 comentarios
Philosophaie
Philosophaie el 17 de Sept. de 2013
Is there a way to put 3 raw equations and let the computer sort them out?
3*(4*x-2*z)+2*(3*z-5*y)+7*(2*y-7*z)=0
4*(3*x-3*z)+4*(8*z-9*y)+9*(5*y-5*z)=0
5*(2*x-4*z)+3*(7*z-7*y)+8*(7*y-2*z)=0
Walter Roberson
Walter Roberson el 11 de Dic. de 2013
  1. subs() 0 for x, y, and z all, to find the constants.
  2. subs() 1 for x, 0 for y and z, and subtract the constants from #1, to find the coefficients for x.
  3. likewise (0,1,0) and (0,0,1) to find y and z coefficients.

Iniciar sesión para comentar.

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by