(35S) Statistical Distributions Functions
|
10-27-2015, 10:25 PM
(This post was last modified: 10-27-2015 10:28 PM by Dieter.)
Post: #16
|
|||
|
|||
RE: HP 35s Statistical Distributions Functions
(10-27-2015 07:32 PM)Dieter Wrote: BTW, at the moment I am looking at an 35s implementation of the HP67 routines. OK, here is a first experimental version of the Chi² algorithm used in the HP67 Stat Pac. PDF and CDF are calculated simultaneously, and both are returned in Y and X. Here is the code: Code: C001 LBL C Usage (results as shown in FIX 9 mode): Code: [XEQ] C [ENTER] J=? As usual, comments, suggestions and error reports are welcome. ;-) Since the main computation routine (C013 ff.) returns both the PDF and the CDF, adding a function that determines the inverse (quantile) is rather simple. I tried an approach using a second-order (Halley) method and it worked well for me. This required about 30 additional lines of code. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)