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 --- 2258/CH1/EX1.20/1_20.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 2258/CH1/EX1.20/1_20.sce (limited to '2258/CH1/EX1.20') diff --git a/2258/CH1/EX1.20/1_20.sce b/2258/CH1/EX1.20/1_20.sce new file mode 100755 index 000000000..678faefbf --- /dev/null +++ b/2258/CH1/EX1.20/1_20.sce @@ -0,0 +1,26 @@ +clc(); +clear; +// To calculate the energies of electron +n2=2; //second quantum state +n4=4; //fourth quantum state +h=6.626*10^-34; +m=9.1*10^-31; //mass in kg +a=2; //potential box length in armstrong +a=a*10^-10; //length in m +A=n2^2*h^2; +B=8*m*a^2; +E2=A/B; //energy in j +E2eV=E2/(1.6*10^-19); //energy in eV +C=n4^2*h^2; +E4=C/B; //energy in j +E4eV=E4/(1.6*10^-19); //energy in eV +printf("energy corresponding to second quantum state in Joule is"); +disp(E2); +printf("energy corresponding to second quantum state in eV is"); +disp(E2eV); +printf("energy corresponding to fourth quantum state in Joule is"); +disp(E4); +printf("energy corresponding to fourth quantum state in eV is"); +disp(E4eV); + +//answers given in the book are wrong -- cgit