I need to find 'x' in this nonlineral equation
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
alireza farrokh
il 24 Feb 2018
Risposto: Walter Roberson
il 24 Feb 2018
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?
0 Commenti
Risposta accettata
Walter Roberson
il 24 Feb 2018
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!