summaryrefslogtreecommitdiff
path: root/2294/CH12/EX12.11/EX12_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2294/CH12/EX12.11/EX12_11.sce
downloadScilab-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.11/EX12_11.sce')
-rwxr-xr-x2294/CH12/EX12.11/EX12_11.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2294/CH12/EX12.11/EX12_11.sce b/2294/CH12/EX12.11/EX12_11.sce
new file mode 100755
index 000000000..b454c110f
--- /dev/null
+++ b/2294/CH12/EX12.11/EX12_11.sce
@@ -0,0 +1,11 @@
+//Exampple 12.11
+//Find the required probabilities.
+disp(0.45,'Let SS be the event that Ramesh pass in Signal and systems, P(SS)=')
+disp(0.32,'Let RP be the event that Ramesh pass in Random process P(RP)=')
+disp(0.15,'P(passed in both)=')
+disp('P(passed in either one subject)=P(SS U RP)')
+disp(0.45+0.32-0.15,'P(SS)+P(RP)-P(passed in both)=0.45+0.32-0.15=')
+disp(1-0.62,'P(passed in neither of the subjects)=1*P(passed in either subjects)=1-0.62=')
+disp('P( passed in one subject)=');
+disp(0.45*0.68+0.55*0.32,'P(SS)*P(failed in RP)+P(failed in SS)*P(RP)=(0.45)*(1-0.32)+(1-0.45)*(0.32)=')
+disp(1-0.45,'P(failed in SS)=1-P(SS)=1-0.45')