summaryrefslogtreecommitdiff
path: root/3768/CH5/EX5.8/Ex5_8.sce
blob: 3443826921eab192190fe79edd624c944b23e108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example number 5.8, Page number 88

clc;clear;
close;

//Variable declaration
n=poly([0],'n');
a=4*10**-10;    //width of potential well(m)
m=9.1*10**-31;    //mass(kg)
e=1.6*10**-19;    //charge(c)
h=6.626*10**-34;   //plank constant
//Calculation
E1=n**2*h**2/(8*m*e*a**2);     //maximum energy(eV)
//Result
disp(E1,"maximum energy in eV is")