diff options
Diffstat (limited to '3808/CH7/EX7.6/Ex7_6.sce')
-rw-r--r-- | 3808/CH7/EX7.6/Ex7_6.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/3808/CH7/EX7.6/Ex7_6.sce b/3808/CH7/EX7.6/Ex7_6.sce new file mode 100644 index 000000000..d2294942e --- /dev/null +++ b/3808/CH7/EX7.6/Ex7_6.sce @@ -0,0 +1,10 @@ +//Chapter 07: Discrete Probability + +clc; +clear; + +s=2**10 //no of bits-0,1 power sequence ie 10 +eb=1 //for bits are 1 +pEb=eb/s //probability of event E bar that all the bits are 1 +pE=1-pEb //probability of event E +disp(pE,'The probability that the bit string will contain at least one 0 bit is') |