diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2939/CH1/EX1.3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2939/CH1/EX1.3')
-rwxr-xr-x | 2939/CH1/EX1.3/Ex1_3.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2939/CH1/EX1.3/Ex1_3.sce b/2939/CH1/EX1.3/Ex1_3.sce new file mode 100755 index 000000000..1148e33e3 --- /dev/null +++ b/2939/CH1/EX1.3/Ex1_3.sce @@ -0,0 +1,23 @@ +//Ex1_3
+
+clc;
+//Given:
+
+energy=10; //in electron volts
+m=9.1*10^-31;// mass of electron in kg
+h=6.626*10^-34;// planck's constant J.s
+c=3*10^8;// speed of light in m/s
+
+//solution (a):
+energy1=energy*1.6*10^-19;// energy in J
+p=(2*m*energy1)^0.5;// momentum
+wavelength=h/p*(10)^10;
+
+printf("The wavelength in Angstroms is = %f ",wavelength)
+
+
+//solution (b):
+wavelength1=h*c/energy1*(10)^10;//photon wavelength
+
+printf("\n The photon wavelength in Angstroms is = %f ",wavelength1)
+
|