Using Fzero for one variable in a nonlinear equation with multiple variables
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, If I have a non linear equation with multiple variables but I want to solve for one variable (in terms of those other variables) then can I use fzero? If so, how?
Thanks
0 件のコメント
採用された回答
Roger Stafford
2014 年 10 月 25 日
編集済み: Roger Stafford
2014 年 10 月 25 日
You want a solution for r as an explicit function of a, b, dh, and de. You cannot accomplish that with 'fzero' or any of the functions of the Optimization Toolbox, which only give you solutions for particular numerical values of these parameters. Your only hope is 'solve' of the symbolic toolbox, and if that fails, it is simply something you presumably cannot achieve. There are many such equations whose explicit solutions are totally unknown to mathematicians, and this may be one of these.
2 件のコメント
Roger Stafford
2014 年 10 月 25 日
Perhaps I should expand a bit on my remarks about your equation, EeeJay.
You can read about the "LambertW function" at:
http://en.wikipedia.org/wiki/Lambert_W_function
where the implicit equation
w*exp(w) = z
is discussed and a method developed over many years to express w as an explicit function of z, (though it has more than one branch.) However, this function cannot be expressed in terms of any of the elementary functions that are common in mathematics. If this special development of the lambert w equation had not been carried out, we would still have to regard the above implicit equation as incapable of an explicit solution. As it turns out, there are many other implicit equations involving an exponential term which can be reduced to this simple equation and therefore also expressed in terms of the lambertw function.
Unfortunately, it appears that your equation, involving as it does three differing exponential expressions, is not one of those that can be so reduced, at least not on my version of the symbolic toolbox. If mathematicians were to devote a sufficient amount of effort in the direction of equations with two or more differing exponential terms, perhaps they would be able to reduce your equation to some explicit solution. Until that wonderful day comes, however, I am afraid you are doomed to always having to express your quantity r as a function that requires the use of an iterative routine like 'fzero' for each set of specific values of your four parameters in order to determine the unknown r.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!