Computing the Binomial Distribution Function
設 X 為參數是 (n,p)的二項隨機變數. 計算其分布函數
To compute
the program should compute first
and then
use the recursion the compute successively
,
,
and so
on. The computation of
can be accomplished by first taking logrithms to obtain
and then taking