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!

 Respuesta aceptada

Walter Roberson
Walter Roberson el 4 de Mayo de 2020

0 votos

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)

Más respuestas (1)

John D'Errico
John D'Errico el 4 de Mayo de 2020

0 votos

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.

Categorías

Más información sobre Optimization en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Mayo de 2020

Comentada:

el 5 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by