New Sum of Powers Log Function
|
03-31-2021, 01:27 PM
(This post was last modified: 03-31-2021 01:31 PM by Namir.)
Post: #13
|
|||
|
|||
RE: New Sum of Powers Log Function
Albert,
Your guess3() function provides good approximation to the SopLog function. Here is the SopLog implementation in Matlab: Code:
Here is my copy of your Python guiess3() + some test calls: Code: from mpmath import * Here is my Matlab version of your guess3() function which I call soplogw3: Code:
I do beleive we must use the solution path of -1 with the Lambert function. The W0(x) does not give the same answers. Here are three test values: Code: soplog(100,1500) -> 0.701661431056288 The soplog() is my original Matlab implementation. The guess3() is you latest implementation, and the soplogw3() is the Matlab equivalent of your guess3(). The results show that using the Lambert W function yields results that match to 5 or 6 decimals. Pretty good! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)