From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2453/CH3/EX3.8/3_8.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 2453/CH3/EX3.8/3_8.sce (limited to '2453/CH3/EX3.8/3_8.sce') diff --git a/2453/CH3/EX3.8/3_8.sce b/2453/CH3/EX3.8/3_8.sce new file mode 100755 index 000000000..a793ffc76 --- /dev/null +++ b/2453/CH3/EX3.8/3_8.sce @@ -0,0 +1,9 @@ +//To calculate the wavelength +m = 9.1*10^-31; //mass of electron, kg +h = 6.626*10^-34; //planck's constant +e = 1.6*10^-19; +E = 2000; //energy, eV +E = E*e; //energy, J +lamda = h/sqrt(2*m*E); //wavelength, m +lamda_nm = lamda*10^9; //velength, nm +printf("wavelength is %5.4f nm",lamda_nm); -- cgit