summaryrefslogtreecommitdiff
path: root/2912/CH5/EX5.22/Ex5_22.sce
diff options
context:
space:
mode:
Diffstat (limited to '2912/CH5/EX5.22/Ex5_22.sce')
-rwxr-xr-x2912/CH5/EX5.22/Ex5_22.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2912/CH5/EX5.22/Ex5_22.sce b/2912/CH5/EX5.22/Ex5_22.sce
new file mode 100755
index 000000000..adefe5b6c
--- /dev/null
+++ b/2912/CH5/EX5.22/Ex5_22.sce
@@ -0,0 +1,17 @@
+//chapter 5
+//example 5.22
+//Calculate minimum error in the energy
+//page 111-112
+clear;
+clc;
+//given
+dT=2.5E-14; // in sec (average life time)
+h=6.63E-34; // in J-s (Planck'c constant)
+pi=3.14; // value of pi used in the solution
+e=1.6*1E-19; // in C (charge of electron)
+//calculate
+// Since dE*dt>=h/(4*pi) (uncertainty relation for energy)
+dE=h/(4*pi*dT); // calculation of minimum uncertainty in the energy
+printf('\nThe uncertainty in the energy of the photon is \tdE=%1.1E J',dE);
+dE=dE/e; //changing unit from J to eV
+printf('\n\t\t\t\t\t\t =%1.1E eV',dE);