Inverse binomial


1) On both my emulator and my physical unit, inverse binomial with p=.5 stored in j, n=10 stored in k for .005 yields 10. I was expecting 0 or possibly 1.

.006 correctly produces an answer of 1.

2) On my emulator when trying large n such as 1 E 06, inverse binomial p=.5, n (k)=1 E 06 for .75 produces 500337. My physical unit produces "reset". The physical unit will come up with a proper result for .75=501288.

2) might be due to older version (3.1 3278)


Physical unit produces correct answer of 501288 for .995 (not the .75 that I accidentally reported).


I'm not the one to answer your question about the proper results, but "reset" is definitely not the intended answer. It looks like another internal stack overflow issue or the like.


Using the R statistical package I get a value of 1 for your first example



and 500337 for your second example




Edited: 10 July 2013, 11:28 a.m.


Hi Richard,

Thanks for reporting. Your observation 1) is definitively a bug. Even 0.0051 Binom^(-1) returns 1. I guess the cause is some internal rounding or truncating.



I think we should fix the memory/stack overflow/corruption bug 2 before jumping to any conclusions about the cause of 1.

- Pauli


I concur. Go ahead!



The "Reset" proved to be the watch dog kicking in. I've added another call to service the watch dog in the code and the "Reset" seems to be gone. Maybe Pauli can find a way to speed up the calculation a little. It just took too long...

Possibly Related Threads…
Thread Author Replies Views Last Post
  wp34s binomial bug Andrew Nikitin 4 1,804 09-22-2013, 05:20 PM
Last Post: Paul Dale
  SandMath routine of the week: Inverse Gamma Function Ángel Martin 39 9,385 03-24-2013, 08:19 AM
Last Post: peacecalc
  [WP34S] Inverse F Distribution--Danged "Domain Error" Issue is Back Les Wright 16 4,498 05-23-2012, 10:28 PM
Last Post: Les Wright
  [WP34s] Inverse discrete probability distributions Eduardo Duenez 11 3,347 05-17-2012, 12:31 PM
Last Post: fhub
  [WP34S] Curious Bug in Inverse Normal Function Les Wright 61 12,634 05-01-2012, 02:44 AM
Last Post: Paul Dale
  [WP34S] Inverse t CDF throws "Domain Error" for probabilities close to 0.5 Les Wright 10 2,749 04-19-2012, 03:25 AM
Last Post: Paul Dale
  [WP34S] Bug in Inverse CDF for F-distribution Les Wright 19 4,232 04-15-2012, 11:17 AM
Last Post: Dieter
  32E's Normal & Inverse Normal Distribution Matt Agajanian 27 6,930 04-14-2012, 06:07 PM
Last Post: Dieter
  Inverse of Harmonic Numbers (hp 33s) Gerson W. Barbosa 4 1,386 07-27-2008, 01:30 PM
Last Post: Gerson W. Barbosa
  matrix Inverse using Hp-17BII+ Chris Dean 0 632 08-09-2005, 08:38 AM
Last Post: chris dean

Forum Jump: