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 /3487/CH1/EX1.2/Ex1_2.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 '3487/CH1/EX1.2/Ex1_2.sce')
-rw-r--r-- | 3487/CH1/EX1.2/Ex1_2.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/3487/CH1/EX1.2/Ex1_2.sce b/3487/CH1/EX1.2/Ex1_2.sce new file mode 100644 index 000000000..0149dc124 --- /dev/null +++ b/3487/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,27 @@ +//Chapter 1,Example 1.2 Page 52 +clc +clear +// Refering the table in example 1.2 +// slope between any two points (log(I/I0)/x) +// taking the gap between 2 and 2.5 mm +I1= 1.5*10^-12 +I2= 5.6*10^-12 +I0 = 6*10^-14 +gi1 = log(I1/I0) // gradual increase when gap is 2 +gi2 = log(I2/I0) // gradual increase when gap is 2.5 //claculation in text is wrong +slope = (gi1-gi2)/0.05 +printf(" Slope = %f \n", -slope) +//evaluvating ghama +e1 = exp(-slope*0.5) +e2 = exp(-slope*0.5) // -1 is ignored due to the large magnitude +ghama = (7*10^7-6*e1)/(e2*7*10^7) +printf(" Ghama for set 1= %e /cm \n ", ghama) +//Gap between the slope for set 2 +alpha = log(12/8)/0.05 +printf(" Alpha = %e collosions/cm \n", alpha) +e1 = exp(alpha*0.5) +e2 = exp(alpha*0.5) // -1 is ignored due to the large magnitude +ghama = (2*10^5-e1)/(e2*2*10^5) +printf(" Ghama for set 2= %e colissions/cm \n", ghama) + +//Answers may vary due to round of error |