How to solve this implicit equation in matlab?

14 visualizaciones (últimos 30 días)
ISHA ARORA
ISHA ARORA el 22 de Oct. de 2021
Respondida: Alan Stevens el 22 de Oct. de 2021
ln [(0.77x-0.77)/(x-0.77)] - (0.23x)/(1-x)-0.0729=0

Respuestas (1)

Alan Stevens
Alan Stevens el 22 de Oct. de 2021
Good idea to plot a graph first, to see roughly where the root lies. Then use fzero. For example::
fn = @(x)log((0.77*x-0.77)./(x-0.77)) - (0.23*x)./(1-x)-0.0729;
x0 = 0.1;
x = fzero(fn,x0);
disp(x)
0.4102
disp(fn(x))
6.9389e-17

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by