/usr/share/openturns/validation/ValidMultiNomial.txt is in openturns-validation 1.5-7build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | > restart:
> q := 1 - p;
> np := n * p;
> r := p / q;
> g := r * (n + 1);
> f:=q^n;
> factor(g / k - r);
> for i from 1 to 10 do
> f := factor(f * (g / i - r));
> od;
q := 1 - p
np := n p
p
r := -----
1 - p
p (n + 1)
g := ---------
1 - p
n
f := (1 - p)
p (n + 1 - k)
- -------------
(-1 + p) k
n
(1 - p) n p
f := - ------------
-1 + p
n 2
(1 - p) n p (n - 1)
f := ---------------------
2
2 (-1 + p)
n 3
(1 - p) n p (n - 1) (n - 2)
f := - -----------------------------
3
6 (-1 + p)
n 4
(1 - p) n p (n - 1) (n - 2) (n - 3)
f := -------------------------------------
4
24 (-1 + p)
n 5
(1 - p) n p (n - 1) (n - 2) (n - 3) (n - 4)
f := - ---------------------------------------------
5
120 (-1 + p)
n 6
(1 - p) n p (n - 1) (n - 2) (n - 3) (n - 4) (n - 5)
f := -----------------------------------------------------
6
720 (-1 + p)
n 7
f := - (1 - p) n p (n - 1) (n - 2) (n - 3) (n - 4) (n - 5)
/ 7
(n - 6) / (5040 (-1 + p) )
/
n 8
f := (1 - p) n p (n - 1) (n - 2) (n - 3) (n - 4) (n - 5) (n - 6)
/ 8
(n - 7) / (40320 (-1 + p) )
/
n 9
f := - (1 - p) n p (n - 1) (n - 2) (n - 3) (n - 4) (n - 5)
/ 9
(n - 6) (n - 7) (n - 8) / (362880 (-1 + p) )
/
n 10
f := (1 - p) n p (n - 1) (n - 2) (n - 3) (n - 4) (n - 5) (n - 6)
/ 10
(n - 7) (n - 8) (n - 9) / (3628800 (-1 + p) )
/
> 100!;
9332621544394415268169923885626670049071596826438162146859296389\
5217599993229915608941463976156518286253697920827223758251\
185210916864000000000000000000000000
>
|