How to solve 5 equations with 5 unknowns
Ältere Kommentare anzeigen
Hi, I don't have any idea how to solve this system. I'm beginner so i don't knew how to write corect code. Pls help me. Equations:
(A-B-C)*5=C*6 ////
(A-B-C)*2+B*3=(A-B)*D ////
(A-B)*(2-D)=B*3 ////
(A-B)*2+B*4=B*E ////
A*2+(A-B)*3+(A-B-C)*2=50
7 Kommentare
Muhammad Usman Saleem
am 29 Mai 2015
use this http://math.stackexchange.com/questions/255750/5-linear-equations-in-5-unknowns and to solve 5 equations with 5 unknown variables use this http://math.cowpi.com/systemsolver/5x5.html hope this is fine...
Roger Stafford
am 29 Mai 2015
Not all these equations are linear.
Muhammad Usman Saleem
am 29 Mai 2015
@Roger check the equations again..
John D'Errico
am 29 Mai 2015
Bearbeitet: John D'Errico
am 29 Mai 2015
Oh, gosh. I learn something new every day. Apparently (A-B)*D, (A-B)*(2-D), and B*E are all linear in the unknowns! I guess I'll need to go back and review my notes for all of those linear algebra classes. Darn this new math.
Walter Roberson
am 29 Mai 2015
Muhammad, the expressions involve A*D, B*D, and B*E, so they certainly are non-linear.
Roger Stafford
am 11 Mär. 2018
I don't remember this problem from almost two years ago, but apparently all of us (except perhaps Muhammad Saleem) overlooked the fact that it is actually a system of five linear equations in the five unknown quantities, A, B, C, d=(A-B)*D, and e=B*E, so it can be solved for these latter five variables using matrix division. From those solutions, it is easy to then find D and E: D = d/(A-B) and E = e/B.
Akzeptierte Antwort
Weitere Antworten (1)
Alex Sha
am 12 Okt. 2019
0 Stimmen
Numercial solution:
a: 9.00473933649289
b: 1.18483412322275
c: 3.55450236966825
d: 1.54545454545455
e: 17.2
Kategorien
Mehr zu Optimization finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!