diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2294/CH12/EX12.10/EX12_10.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2294/CH12/EX12.10/EX12_10.sce')
-rwxr-xr-x | 2294/CH12/EX12.10/EX12_10.sce | 9 |
1 files changed, 9 insertions, 0 deletions
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')
|