Lambert W function (for HP Prime)
|
08-25-2022, 03:17 AM
(This post was last modified: 08-25-2022 12:42 PM by Bill Triplett.)
Post: #18
|
|||
|
|||
RE: Lambert W function (for HP Prime)
When calculating values for Lambert Omega, the HP Prime can handle big numbers. For older calculators such as the HP-42S, the ancient little shirt-pocket machines were surprisingly capable.
The number of smallest subatomic particles in the observable universe is approximately 3.3x10^80. Using Lyuka's LW0C program on the Prime, we see: LW0C(3.3E80) = 180.2 Also, LW0C(1.797693E308) = 708.59221 This is the maximum. If we make the x input for Lyuka's LW0C program just a tiny bit larger, the result becomes undefined. If we keep perspective, and consider the size of the universe, this is not really a limit. I polished up one of Albert Chan's Lambert Omega functions for the HP-42S. My physical machine calculates W(9.99999999999E499) = 1,144.25. No larger input is allowed. When using the Free42 simulator, the little beast allows us to type in exponents up to 999. It can do this: W(999,999,999,999,999E999) = 2,327.06892 We can't physically type in exponents bigger than three digits when entering a value for x, but I have an idea. Assume we have a Lambert Omega function stored in a program named "cW" in the HP-42S catalog. We can type this: Shift GTO cW 999,999,999,999,999E999 ENTER * At this point after we hit the multiply button (*), the x register contains 1.0E2028. This is the original big number multiplied by itself. Now, press R/S. Mr. Chan's code calculates cW(1.0E2028) = 4661.19. "Out of this world?" Nope. It is more like, "out of this universe." I have no idea how far the simulated HP-42S can go. Here is the HP-42S program I used for calculating the Lambert Omega relation values based on Mr. Chan's code: Code: 00 { 64-Byte Prgm } |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)