blob: e1c726c17013f934c59e4e45fb3b3e67c9d22399 (
plain)
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
|
//To Find The Probability on the reliability of transformers
//Page 614
clc;
clear;
//Reliabilities of The Three Transformers
Pa=0.9;
Pb=0.95;
Pc=0.99;
//Faliures of Three Transformers
Qa=1-Pa;
Qb=1-Pb;
Qc=1-Pc;
//Probability of NO Transformer Failing
Pnf=Pa*Pb*Pc;
PfA=Qa*Pb*Pc//Probability of Transformer A Failing
PfB=Pa*Qb*Pc//Probability of Transformer B Failing
PfC=Pa*Pb*Qc//Probability of Transformer C Failing
PfAB=Qa*Qb*Pc//Probability of Transformer A and B Failing
PfBC=Pa*Qb*Qc//Probability of Transformer B and C Failing
PfCA=Qa*Pb*Qc//Probability of Transformer C and A Failing
Pf=Qa*Qb*Qc; //Probability of All Transformers failing
printf('\na) Probability of No Transformer Failing is %g\n',Pnf)
printf('\nb)\n')
printf('Probability of Transformer A Failing is %g\n',PfA)
printf('Probability of Transformer B Failing is %g\n',PfB)
printf('Probability of Transformer C Failing is %g\n',PfC)
printf('\nc)\n')
printf('Probability of Transformers A and B Failing is %g\n',PfAB)
printf('Probability of Transformers B and C Failing is %g\n',PfBC)
printf('Probability of Transformers C and A Failing is %g\n',PfCA)
printf('\nd) Probability of All Three Transformers Failing is %g\n',Pf)
|