binomialQ.praat 323 B

123456
  1. echo binomialQ
  2. assert fixed$ (invBinomialP (0.025, 211, 1000), 6) = "0.237622"
  3. assert fixed$ (invBinomialQ (0.025, 211, 1000), 6) = "0.186092"
  4. assert abs (binomialP (invBinomialP (0.025, 211, 1000), 211, 1000) - 0.025) < 1e-14
  5. assert abs (binomialQ (invBinomialQ (0.025, 211, 1000), 211, 1000) - 0.025) < 1e-15
  6. printline OK