summaryrefslogtreecommitdiff
path: root/3755/CH6/EX6.9/Ex6_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '3755/CH6/EX6.9/Ex6_9.sce')
-rw-r--r--3755/CH6/EX6.9/Ex6_9.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3755/CH6/EX6.9/Ex6_9.sce b/3755/CH6/EX6.9/Ex6_9.sce
new file mode 100644
index 000000000..6abbfb7fb
--- /dev/null
+++ b/3755/CH6/EX6.9/Ex6_9.sce
@@ -0,0 +1,19 @@
+clear
+//
+//
+//
+
+//Variable declaration
+h=6.6*10^-34; //planck's constant(J-sec)
+m=9.1*10^-31; //mass of electron(kg)
+c=3*10^8; //velocity of light(m/sec)
+e=1.6*10^-19; //charge of electron(c)
+E=1000; //energy of electron(eV)
+
+//Calculations
+lamda_p=h*c*10^10/(E*e); //wavelength of photon(angstrom)
+lamda_e=h*10^10/sqrt(2*m*E*e); //wavelength of electron(angstrom)
+
+//Result
+printf("\n wavelength of photon is %0.1f angstrom",lamda_p)
+printf("\n wavelength of electron is %0.2f angstrom",lamda_e)