How can I solve this equation?

I have this equation and it seems hard to calculate manually so I decided to write a code... but I cannot :(
a+b*x=x/(b*ln((x-e)/x));
Only x is the variable, a,b and e is known.
Thank!

 Risposta accettata

syms x
eqn = a+b*x==x/(b*log((x-e)/x));
vpasolve(eqn, x)
Or
eqn = @(x) (a+b*x) - (x/(b*log((x-e)/x)));
fzero(eqn, InitialGuess)

Più risposte (1)

John D'Errico
John D'Errico il 4 Mag 2020

0 voti

There will probably be no analytical solution to the problem, as I doubt lambertW or wrightOmega will suffice. However, given the known values of the constants a,b,e, just use fzero, or fsolve, or vpasolve as you prefer.

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by