summaryrefslogtreecommitdiff
path: root/3828/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3828/CH4/EX4.2/Ex4_2.sce')
-rw-r--r--3828/CH4/EX4.2/Ex4_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3828/CH4/EX4.2/Ex4_2.sce b/3828/CH4/EX4.2/Ex4_2.sce
new file mode 100644
index 000000000..8b50ad0a2
--- /dev/null
+++ b/3828/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,17 @@
+//Chapter 4 : Laser and Holography
+
+clear;
+
+//Variable declaration
+lamda=6328*10**-10 //wavelength
+h=6.63*10**-34 //planck's constant
+c=3*10**8 //speed of light
+
+//Calculations
+E=((h*c)/lamda)/1.6*10**19
+Momentum=h/lamda/10**-27
+
+//Result
+mprintf("Energy of radiation= %f eV",E)
+mprintf("\nMomentum of electron= %f*10**-27 kgm/s",Momentum)
+