From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 374/CH6/EX6.5/65.sci | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 374/CH6/EX6.5/65.sci (limited to '374/CH6/EX6.5/65.sci') 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) -- cgit