ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   ProductLog (https://www.excelbanter.com/excel-worksheet-functions/208727-productlog.html)

WilliamG

ProductLog
 
I have discovered that the solution to a problem I am trying to solve is: B
= A + ProductLog [-Ae^-A]. I know A and, obviously, e. Is there a formula I
can type into Excel that will give me the output B? Many thanks indeed for
any help you can offer.

Barb Reinhardt

ProductLog
 
If I can assume that ProductLog = we^w then do this

Let's also assume the your value of w (from the above) is in cell A1

Product Log =A1*EXP(A1)

FWIW, I had to Google this function. I don't believe that there is a built
in function in Excel, but you could create a UDF if you use it enough.
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"WilliamG" wrote:

I have discovered that the solution to a problem I am trying to solve is: B
= A + ProductLog [-Ae^-A]. I know A and, obviously, e. Is there a formula I
can type into Excel that will give me the output B? Many thanks indeed for
any help you can offer.


Barb Reinhardt

ProductLog
 
Oops, correction to function

=A1+ A1*EXP(A1)
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"WilliamG" wrote:

I have discovered that the solution to a problem I am trying to solve is: B
= A + ProductLog [-Ae^-A]. I know A and, obviously, e. Is there a formula I
can type into Excel that will give me the output B? Many thanks indeed for
any help you can offer.


Dana DeLouis[_3_]

ProductLog
 
If I can assume that ProductLog = we^w then do this

Hi. I don't believe that is correct.
A quick copy form Help in a math program...

ProductLog[z] gives the principal solution for w in z=we^w.

For Excel, we need to solve via iteration AFAIK.

Dana DeLouis



Barb Reinhardt wrote:
If I can assume that ProductLog = we^w then do this

Let's also assume the your value of w (from the above) is in cell A1

Product Log =A1*EXP(A1)

FWIW, I had to Google this function. I don't believe that there is a built
in function in Excel, but you could create a UDF if you use it enough.


Dana DeLouis[_3_]

ProductLog
 
WilliamG wrote:
I have discovered that the solution to a problem I am trying to solve is: B
= A + ProductLog [-Ae^-A]. I know A and, obviously, e. Is there a formula I
can type into Excel that will give me the output B? Many thanks indeed for
any help you can offer.



Hi. Here's 1 idea for a vba function.
It does not have error checking. It's very basic.
It goes for 15 loops, and will not exit if it hits it's fixed point earlier.

Function ProductLog(n)
Dim g As Double
Dim j As Long

g = 1

For j = 1 To 15
g = (n * Exp(-g) + g ^ 2) / (1 + g)
Next j

ProductLog = g
End Function

HTH
Dana DeLouis

Dana DeLouis[_3_]

ProductLog
 
= A + ProductLog [-Ae^-A]

As a side note... I would double check my equations if in fact you used
"e" and not "E"

Dana DeLouis



WilliamG wrote:
I have discovered that the solution to a problem I am trying to solve is: B
= A + ProductLog [-Ae^-A]. I know A and, obviously, e. Is there a formula I
can type into Excel that will give me the output B? Many thanks indeed for
any help you can offer.



All times are GMT +1. The time now is 11:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com