I need to find 'x' in this nonlineral equation

1 回表示 (過去 30 日間)
alireza farrokh
alireza farrokh 2018 年 2 月 24 日
回答済み: Walter Roberson 2018 年 2 月 24 日
I need to find 'x' in here: i have 'a=0;2;20' and 'ei' is an exponential integral known in matlab. My nonlinearal equation is 'ei(x)=9/a' or 'ei(x)-(9/a)=0' . how can i find 'x' using fsolve?

採用された回答

Walter Roberson
Walter Roberson 2018 年 2 月 24 日
a = 0 : 2 : 20;
arrayfun(@(A) fsolve(@(x) ei(x)-9/A, 1, optimoptions('fsolve','Display','off')), max(a,1e-8) )
the max() is there to prevent 9/A from being infinity at A near 0.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSystems of Nonlinear Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by