blob: 386932394fc90232a13afd07db26cb11af019d8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//Variable declaration
e=1.6*10**-19; //charge of electron(coulomb)
L=10**-10 //1Angstrom=10**-10 m
n1=1;
n2=2;
n3=3;
h=6.626*10**-34
m=9.1*10**-31
L=10**-10
//Calculations
E1=(h**2)/(8*m*L**2*e)
E2=4*E1
E3=9*E1
//Result
printf('The permitted electron energies =%0.3f *n**2 eV \n ',(E1))
printf('E1=%0.3f eV \n ',(E1))
printf('E2=%0.3f eV \n ',(E2))
printf('E3=%0.3f eV \n ',(E3))
printf('//Answer varies due to ing of numbers")
|