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 /539/CH21/EX21.1/Example_21_1.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 '539/CH21/EX21.1/Example_21_1.sce')
-rwxr-xr-x | 539/CH21/EX21.1/Example_21_1.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/539/CH21/EX21.1/Example_21_1.sce b/539/CH21/EX21.1/Example_21_1.sce new file mode 100755 index 000000000..ae2dcaa12 --- /dev/null +++ b/539/CH21/EX21.1/Example_21_1.sce @@ -0,0 +1,22 @@ +//Example 20.1 Calculation of absorption coefficient
+
+clear;
+clc;
+
+printf("\tExample 21.1\n");
+
+// x is thickness of glass(mm)
+x=200;
+
+//It is intensity of non-absorbed radiation
+//Io is intensity of non-relected radiation
+
+f=0.98; //f=It/Io
+
+//b is absorption coefficient
+
+b=-log(f)/x;
+
+printf("\nAbsorption coefficient is %f mm^-1\n",b);
+
+//End
\ No newline at end of file |