Subversion Repositories wimsdev

Rev

Rev 3307 | Rev 4328 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3307 Rev 4161
Line 2... Line 2...
2
 !goto proc
2
 !goto proc
3
!endif
3
!endif
4
slib_title=Generation of binomial random data
-
 
-
 
4
 
5
slib_parms=3\
5
slib_parms=3\
6
 ,m\
6
 ,m\
7
 ,n\
7
 ,n\
8
 ,p
8
 ,p
9
slib_author=Adeline Grelot
9
slib_author=Adeline Grelot
10
slib_out=random data of m integers following a binomial law of parameters  n and p (n is an integer and p a real between 0 and 1)
-
 
11
slib_comment= P(X=k)=binomial(n,k)*p^k*(1-p)^(n-k)
-
 
-
 
10
 
12
slib_example=15,10,0.5
11
slib_example=15,10,0.5
13
slib_require=pari
12
slib_require=pari
14
!exit
13
!exit
15
 
14
 
16
:proc
15
:proc