summaryrefslogtreecommitdiff
path: root/3768/CH5/EX5.8/Ex5_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3768/CH5/EX5.8/Ex5_8.sce')
-rw-r--r--3768/CH5/EX5.8/Ex5_8.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3768/CH5/EX5.8/Ex5_8.sce b/3768/CH5/EX5.8/Ex5_8.sce
new file mode 100644
index 000000000..344382692
--- /dev/null
+++ b/3768/CH5/EX5.8/Ex5_8.sce
@@ -0,0 +1,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")