Lambert W function (for HP Prime)
|
11-07-2020, 07:36 AM
(This post was last modified: 11-07-2020 02:41 PM by lyuka.)
Post: #13
|
|||
|
|||
RE: Lambert W function (for HP Prime)
I modified LW0H and LW0 for CAS and used them.
In CAS, both LW0 and LW0H show straightforward convergence, and in this case shown below, correct to the last digit. but in HOME, that is, in numerical calculation with 12 decimal digits, convergence from around the point where the correction value reaches several tens of ULP (unit in last place) is unnaturally slow. In the following cases of x = -1.78, the calculation results were all correct up to the 12th digit in CAS, but not in HOME. LW0 Rev.1.38 convergence example at x = -1.78 at HOME LW0 Rev.1.38 convergence example at x = -1.78 in CAS LW0H Rev.1.37 convergence example at x = -1.78 at HOME LW0H Rev.1.37 convergence example at x = -1.78 in CAS Calculation result by WolframAlpha -- W0(-1.78) ≈ 0.089218049856209317716109060765294251305387407793167833503833064… + i1.6256236744277681331520891017303249073577948841857860157186500… This convergence behavior in HOME may be due to the fact that 12 digits are not large enough, but, it's similar to the behavior when there is a problem with normalize-and-rounding for each numerical calculation. Here is the LW0 code for CAS used for testing. Code: #CAS Please refer to the page below for details. Lambert W function and exponent of Lambert W function for HP Prime |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)