SandMath incomplete beta function broken?
|
01-16-2016, 07:25 PM
Post: #1
|
|||
|
|||
SandMath incomplete beta function broken?
When trying to evaluate incomplete beta (ICBT) on the two versions of SandMath I'm using (SM9F and SM9G), the calculator just displays "RUNNING..." for a long time and never converges on an answer. ICBT is a FOCAL program, so I decided to have a look at it. It has an inauspicious beginning...
Code: 01 ST* 01 ...and continues on for some 66 lines, eventually attempting to find the answer via the generalized hypergeometric function, HGF+. I tried calculating incomplete beta manually using SandMath's HGF+ function, and I get the right answer, with HGF+ converging reasonably quickly. I don't have room in my NoV64 for the 32K monster that the latest SandMath has become, so I was wondering if someone with a 41CL could see if the function has been fixed. You can use the example from the manual: Code: PI Thanks. David Brunell Houston, Texas |
|||
01-16-2016, 07:47 PM
(This post was last modified: 01-16-2016 07:55 PM by Ángel Martin.)
Post: #2
|
|||
|
|||
RE: SandMath incomplete beta function broken?
(01-16-2016 07:25 PM)quantalume Wrote: I don't have room in my NoV64 for the 32K monster that the latest SandMath has become, so I was wondering if someone with a 41CL could see if the function has been fixed. You can use the example from the manual: Works for me ;-? I just sent you the latest MOD files, you may have a version mismatch somewhere...? "To live or die by your own sword one must first learn to wield it aptly." |
|||
01-17-2016, 01:34 AM
Post: #3
|
|||
|
|||
RE: SandMath incomplete beta function broken?
(01-16-2016 07:47 PM)Ángel Martin Wrote: Works for me ;-? I just sent you the latest MOD files, you may have a version mismatch somewhere...? OK, it looks like it was fixed somewhere between versions 9G and 9L. Since I'd like to continue to use the earlier 8K versions, what would be the easiest way to patch the ROM images? Here is, for example what the function looks like in version 9G: Code:
You list this as a FOCAL function in the SandMath manual, but does it have some sort of MCODE launcher? How would I replace this with a straight FOCAL function? I think there is enough room without breaking the downstream addresses. David Brunell Houston, Texas |
|||
01-17-2016, 07:56 AM
Post: #4
|
|||
|
|||
RE: SandMath incomplete beta function broken?
(01-17-2016 01:34 AM)quantalume Wrote: You list this as a FOCAL function in the SandMath manual, but does it have some sort of MCODE launcher? How would I replace this with a straight FOCAL function? I think there is enough room without breaking the downstream addresses. This may not be as simple as it should, many versions have happened since and I have archived those older source files... For a 'straight" FOCAL program I'd suggest you use JM Baillard's, which is the same I used in the SandMath. It is posted at the bottom of this page: http://hp41programs.yolasite.com/gamma.php "To live or die by your own sword one must first learn to wield it aptly." |
|||
01-17-2016, 08:49 AM
Post: #5
|
|||
|
|||
RE: SandMath incomplete beta function broken?
(01-17-2016 07:56 AM)Ángel Martin Wrote: This may not be as simple as it should, many versions have happened since and I have archived those older source files... Ok, perhaps the easiest thing to do is put a FOCAL program of the same name in user memory or HEPAX memory, which sits below the first ROM. This way it will find the replacement program first. Do you ever break backwards compatibility with Library4 updates? For example, might I have a problem if I'm using an old SandMath44 with the latest Library4? David Brunell Houston, Texas |
|||
01-17-2016, 03:10 PM
(This post was last modified: 01-17-2016 03:11 PM by Ángel Martin.)
Post: #6
|
|||
|
|||
RE: SandMath incomplete beta function broken?
(01-17-2016 08:49 AM)quantalume Wrote:(01-17-2016 07:56 AM)Ángel Martin Wrote: This may not be as simple as it should, many versions have happened since and I have archived those older source files... In very rare instances that may occur, but not likely. The Lib#4 code has been more or less frozen for a couple of years except a couple of tweaks for the 16C Emulator and the GJM Modules. . It's hard to say 100% since there are so many inter-dependencies. "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)