summaryrefslogtreecommitdiff
path: root/291/CH3/EX3.7a
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /291/CH3/EX3.7a
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 '291/CH3/EX3.7a')
-rwxr-xr-x291/CH3/EX3.7a/eg3_7a.sce5
1 files changed, 5 insertions, 0 deletions
diff --git a/291/CH3/EX3.7a/eg3_7a.sce b/291/CH3/EX3.7a/eg3_7a.sce
new file mode 100755
index 000000000..aace4beb7
--- /dev/null
+++ b/291/CH3/EX3.7a/eg3_7a.sce
@@ -0,0 +1,5 @@
+accident_prone= 0.4;
+nonaccident_prone= 0.2;
+pop_accident = 0.3;
+prob = pop_accident*accident_prone + (1-pop_accident)*nonaccident_prone;
+disp(prob, "The required probability is "); \ No newline at end of file