From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2294/CH12/EX12.10/EX12_10.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 2294/CH12/EX12.10/EX12_10.sce (limited to '2294/CH12/EX12.10') diff --git a/2294/CH12/EX12.10/EX12_10.sce b/2294/CH12/EX12.10/EX12_10.sce new file mode 100755 index 000000000..74a97e031 --- /dev/null +++ b/2294/CH12/EX12.10/EX12_10.sce @@ -0,0 +1,9 @@ +//Example 12.10 +//find the required probabilities. +disp('P(Plant shut down)=P(S1&S2&S3 is offline)or P(S1&S2 is offline)or P(S1&S3 are offline)=') +p=(0.01)*(0.03)*(0.05)+(0.01)*(0.03)*(1-0.05)+(0.01)*(1-0.03)*(0.05) +disp('(0.01)*(0.03)*(0.05)+(0.01)*(0.03)*(1-0.05)+(0.01)*(1-0.03)*(0.05)=') +disp(p) +disp(1-p,'P(Plant on line)=1-P(Plant shut down)=') +disp('P(plant is online/S1 failed)=') +disp((0.01)*(1-0.03)*(1-0.05)/0.01,'P(plant is online and S1 failed)/P(S1 failed)=(0.01)*(1-0.03)*(1-0.05)/0.01') -- cgit