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 /1475/CH1/EX1.57 | |
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 '1475/CH1/EX1.57')
-rwxr-xr-x | 1475/CH1/EX1.57/Example_1_57.sce | 12 | ||||
-rwxr-xr-x | 1475/CH1/EX1.57/Output_1_57.PNG | bin | 0 -> 15633 bytes |
2 files changed, 12 insertions, 0 deletions
diff --git a/1475/CH1/EX1.57/Example_1_57.sce b/1475/CH1/EX1.57/Example_1_57.sce new file mode 100755 index 000000000..51125eb3b --- /dev/null +++ b/1475/CH1/EX1.57/Example_1_57.sce @@ -0,0 +1,12 @@ +// 1.57 In a bolt factory the machines
+clc;
+clear;
+B1=(25/100);
+B2=(35/100);
+B3=(40/100);
+C= (5/100);
+D= (4/100);
+E= (2/100);
+disp(B3,"Probability of choosing a bolt from Machine M3=",B2,"Probability of choosing a bolt from Machine M2=",B1,"Probability of choosing a bolt from Machine M1=")
+disp((B3*D)/((B1*C)+(B2*D)+(B3*E)),"Using Bayes formula, Probability that a defective bolt was manufactured by machine M3 P(B3/A)=",E,"Probability that a bolt is defective, if it comes from machine M3 P(A/B3)=",D,"Probability that a bolt is defective, if it comes from machine M2 P(A/B2)=",C,"Probability that a bolt is defective, if it comes from machine M1 P(A/B1)=");
+// Answer in Book is misprinted.
diff --git a/1475/CH1/EX1.57/Output_1_57.PNG b/1475/CH1/EX1.57/Output_1_57.PNG Binary files differnew file mode 100755 index 000000000..b5a8f4aab --- /dev/null +++ b/1475/CH1/EX1.57/Output_1_57.PNG |