Solve complex chamical equilibrium using Newton-Raphson
이전 댓글 표시
I have 9 equation, such as this figure below,. I have to solve this equation to get value n1, n2, n3, n4, n5, n6. Can you help me? Danke. I have MATLAB R2013a

답변 (1개)
Torsten
2015년 6월 19일
0 개 추천
help fsolve
Best wishes
Torsten.
댓글 수: 2
rifa'atul mahmudhah
2015년 7월 15일
Torsten
2015년 7월 16일
You won't get negative values for your variables if you solve in variables squared, e.g. set nH2 = x(1)^2 instead of nH2 = x(1) (same for the other molar masses).
You won't get complex values for your variables if you take exp of your equations. Thus instead of solving ln(a)=b, solve a=exp(b).
Best wishes
Torsten.
카테고리
도움말 센터 및 File Exchange에서 Parallel Computing Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!