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!

 Réponse acceptée

Walter Roberson
Walter Roberson le 4 Mai 2020

0 votes

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)

Plus de réponses (1)

John D'Errico
John D'Errico le 4 Mai 2020

0 votes

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.

Catégories

En savoir plus sur Optimization dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by