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.10/3_10.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2453/CH3/EX3.10/3_10.sce (limited to '2453/CH3/EX3.10') diff --git a/2453/CH3/EX3.10/3_10.sce b/2453/CH3/EX3.10/3_10.sce new file mode 100755 index 000000000..9f033373c --- /dev/null +++ b/2453/CH3/EX3.10/3_10.sce @@ -0,0 +1,16 @@ +//To calculate the energy values +n1 = 1; //for ground state +n2 = 2; //for 1st excited state +n3 = 3; //for 2nd excited state +h = 6.626*10^-34; //planck's constant, J sec +m = 9.1*10^-31; //mass of electron, kg +L = 1*10^-10; //width, m +E1 = h^2*n1^2/(8*m*L^2); //energy in ground state, J +E2 = n2^2*E1; //energy in 1st excited state, J +E3 = n3^2*E1; //energy in 2nd excited state, J +printf("energy in ground state in J is"); +disp(E1); +printf("energy in 1st excited state in J is"); +disp(E2); +printf("energy in 2nd excited state in J is"); +disp(E3); -- cgit