diff options
Diffstat (limited to '2939/CH1/EX1.4/Ex1_4.sce')
-rwxr-xr-x | 2939/CH1/EX1.4/Ex1_4.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2939/CH1/EX1.4/Ex1_4.sce b/2939/CH1/EX1.4/Ex1_4.sce new file mode 100755 index 000000000..fe89ed4b1 --- /dev/null +++ b/2939/CH1/EX1.4/Ex1_4.sce @@ -0,0 +1,19 @@ +//Ex1_4
+
+clc;
+
+//Given:
+
+wavelength=10^-10;
+m=9.1*10^-31;
+h=6.626*10^-34;
+
+//solution:
+
+p=h/wavelength;
+e=p*p/(2*m); // energy in J
+e1=e/(1.6*10^-19);// energy in eV
+
+printf("The energy in eV is = %f ",e1)
+
+
|