summaryrefslogtreecommitdiff
path: root/374/CH6/EX6.5
diff options
context:
space:
mode:
Diffstat (limited to '374/CH6/EX6.5')
-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)