Need help getting exp equation to lambert form

  • Thread starter Thread starter nalo
  • Start date Start date
  • Tags Tags
    Form
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
nalo
Messages
2
Reaction score
0
I have an equation that I have numerically solved in MATLAB - but can't figure out how MatLab has done it! It has used a Lambert W equation to get an answer for my formula which is in the style:

z[1-e(-1/z)]=1

which MuPad simplifies down to:

z = 1/(Wk(-1/e1) + 1)

But I've been trying to figure out how to even get z into the correct form for Lambert W [XeX = Y -> X = W(Y)] and can't figure it out.

Hopefully someone can open my eyes as I can't help but think it should be a simple enough solution.

Thanks for any help!

Nalo
 
Physics news on Phys.org
nalo said:
I have an equation that I have numerically solved in MATLAB - but can't figure out how MatLab has done it! It has used a Lambert W equation to get an answer for my formula which is in the style:

z[1-e(-1/z)]=1

which MuPad simplifies down to:

z = 1/(Wk(-1/e1) + 1)

But I've been trying to figure out how to even get z into the correct form for Lambert W [XeX = Y -> X = W(Y)] and can't figure it out.

Hopefully someone can open my eyes as I can't help but think it should be a simple enough solution.

Thanks for any help!

Nalo

Rewrite your equation as:

[tex]e^{-\frac 1 z} = 1 - \frac 1 z[/tex]

Let u = 1 - 1/z giving eu-1 = u. This gives:

1 = ue1-u) = ue1e-u. Now let v = -u, giving vev= -1/e. So v = W(-1/e). Now you can just back substitute for z.
 
Thank you very much LCKurtz! My maths brain is mucho rusty.

Dick said:
Back substitute for z if you dare. (-1)e^(-1)=(-1/e) so W(-1/e)=(-1). Your original equation doesn't have any real roots.

Ah I noticed that just after I posted. It's just a style example of a more long winded question I've got.

Just worked through my actual question there and got the same result as MATLAB (give or take a very little) so thank you all for your help!