Solve a system of equations with two unknowns

조회 수: 2 (최근 30일)
Greg
Greg 2012년 5월 7일
댓글: Greg Heath 2014년 10월 1일
Hi everyone this should be a pretty easy question. I have two equations with two unknowns
1. -161.20 +2.7Ts -2.7Ta +3.91x10^-8 Ts^4 -5.67x10^-8 Ta^4 =0
2. -78.02 +2.7Ts -2.7Ta -3.57x10^-8 Ts^4 +1.13x10^-7 Ta^4 =0
where Ts and Ta are the unknowns I am trying to calculate. How do I work out the answer for this? Thanks for the help.

채택된 답변

Greg Heath
Greg Heath 2014년 9월 25일
편집: Greg Heath 2014년 9월 30일
With an obvious change of variables, the two equations can be combined to obtain
y^4 =( 83.18 + 16.97x^4)/7.48
and
y = x +(117.72 -3.2007x^4)/270
leading to a 16th ? order polynomial equation in x.
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
Greg Heath
Greg Heath 2014년 10월 1일
Given the two simultaneous equations
y = 0.436 +x -0.011854*x.^4 (1)
y^4 = ( 11.12 + 2.2687*x.^4) (2)
and taking the fourth root of the latter yields
the following 4 equations which can be combined
with the first equation to eliminate y.
y = (+/-)* ( 11.12 + 2.2687*x.^4)^(1/4) (3,4)
y = (+/-)*i*( 11.12 + 2.2687*x.^4)^(1/4) (5,6)
Plotting equations 1,3 and 4
x = -4:0.05:6;
y1 = 0.436 +x -0.011854*x.^4 ; %(1)
y2 = ( 11.12 + 2.2687*x.^4).^(1/4) ; %(2)
y3 = - ( 11.12 + 2.2687*x.^4).^(1/4); %(3)
close all, figure
hold on
plot(x,y1,'k')
plot(x,y2,'b')
plot(x,y3,'r')
Shows that although y2 is always greater than y1,
y3 intersects y1 near x = -3.25 and x = 5.75
All other roots must be complex.
Interesting.
Greg

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Silibelo Kamwi
Silibelo Kamwi 2012년 5월 7일
Hi Greg, i guess you need to check the optimization toolbox, there is an example of a function dealing with this type of system of nonlinear equations, called fminunc and you might need to get the derivative of your system of equations.
cheers, IK

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by