summaryrefslogtreecommitdiff
path: root/374/CH6/EX6.1/61.sci
diff options
context:
space:
mode:
Diffstat (limited to '374/CH6/EX6.1/61.sci')
-rw-r--r--374/CH6/EX6.1/61.sci16
1 files changed, 16 insertions, 0 deletions
diff --git a/374/CH6/EX6.1/61.sci b/374/CH6/EX6.1/61.sci
new file mode 100644
index 000000000..47252d685
--- /dev/null
+++ b/374/CH6/EX6.1/61.sci
@@ -0,0 +1,16 @@
+//chapter 6 example 1//
+clc
+clear
+//energy=E,efficiency=n,wavelength=l,plancks constant=h,speed of light=c,incident power required=R,incident power required=Po//
+h=6.62*(10^-34);
+c=3*(10^8);//in mts/sec//
+E=2.2*(10^-19);//in joules//
+l=((h*c)/E)*(10^6);//operating wavelength//
+printf("\n a) operating wavelength required=%f micro meter\n",l)
+f=c/l;
+n=0.7;//efficiency//
+e=1.6*(10^-19);//charge of electron//
+R=((n*e)/(h*f))*(10^-6);
+Ip=2.0*(10^-6);
+Po=(Ip/R)*(10^6);
+printf("\n b) incident power required=%f m\n",Po) \ No newline at end of file