summaryrefslogtreecommitdiff
path: root/374/CH6/EX6.5/65.sci
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /374/CH6/EX6.5/65.sci
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '374/CH6/EX6.5/65.sci')
-rw-r--r--374/CH6/EX6.5/65.sci16
1 files changed, 16 insertions, 0 deletions
diff --git a/374/CH6/EX6.5/65.sci b/374/CH6/EX6.5/65.sci
new file mode 100644
index 000000000..8eaabed86
--- /dev/null
+++ b/374/CH6/EX6.5/65.sci
@@ -0,0 +1,16 @@
+//chapter 6 example 5//
+clc
+clear
+//absorption coeffcient=a,refractive index=n1,reflection coeffcient=Rf,fraction of the incident power absorbed=K,distance=d//
+n1=3.5;
+d=3*(10^-6);
+a=10^5;
+W=3*(10^-6);
+Rf=((n1-1)^2)/((n1+1)^2);
+K=exp(-a*d)*(1-(exp(-a*W)))*(1-Rf);
+printf("\n fraction of incident power absorbed=%f \n",K)
+a1=(10^6);
+W1=(10^-6);
+d1=(10^-6);
+K1=exp(-a1*d1)*(1-(exp(-a1*W1)))*(1-Rf);
+printf("\n fraction of incident power absorbed=%f \n",K1)