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!