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 /1970/CH4/EX4.7/Ch04Exa7.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 '1970/CH4/EX4.7/Ch04Exa7.sce')
-rwxr-xr-x | 1970/CH4/EX4.7/Ch04Exa7.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1970/CH4/EX4.7/Ch04Exa7.sce b/1970/CH4/EX4.7/Ch04Exa7.sce new file mode 100755 index 000000000..8b442d6b5 --- /dev/null +++ b/1970/CH4/EX4.7/Ch04Exa7.sce @@ -0,0 +1,13 @@ +// Scilab code Exa4.7 : : Page-179 (2011)
+clc; clear;
+R_t = 100; // Actual count rate, per sec
+R_B = 25; // Backward count rate, per sec
+V_S = 0.03; // Coefficient of variation
+R_S = R_t-R_B; // Source counting rate,per sec
+T_t = (R_t+sqrt(R_t*R_B))/(V_S^2*R_S^2); // Time measurement for actual count, sec
+T_B = T_t*sqrt(R_B/R_t); // Time measurement for backward count, sec
+printf("\nTime measurement for actual count : %5.3f sec \nTime measurement for backward count : %4.1f sec", T_t, T_B);
+
+// Result
+// Time measurement for actual count : 29.630 sec
+// Time measurement for backward count : 14.8 sec
\ No newline at end of file |