summaryrefslogtreecommitdiff
path: root/2780/CH7/EX7.20/Ex7_20.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /2780/CH7/EX7.20/Ex7_20.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '2780/CH7/EX7.20/Ex7_20.sce')
-rwxr-xr-x2780/CH7/EX7.20/Ex7_20.sce23
1 files changed, 12 insertions, 11 deletions
diff --git a/2780/CH7/EX7.20/Ex7_20.sce b/2780/CH7/EX7.20/Ex7_20.sce
index e427ce4c2..423104ad7 100755
--- a/2780/CH7/EX7.20/Ex7_20.sce
+++ b/2780/CH7/EX7.20/Ex7_20.sce
@@ -1,11 +1,12 @@
-clc
-//to calculate uncertainity in frequency
-delt=10^-8 //uncertainity in time
-delnu=1/(2*%pi*delt)
-disp("minimum uncertainity in the frequency of a photon is delnu="+string(delnu)+"sec^-1")
-//to use the uncertainity principle to place a lower limit on the energy an electron must have if it is to be part of a nucleus
-delx=5*10^-15 //uncertainity in position
-delp=h/(2*2*%pi*delx) //uncertainbity in momentum
-c=3*10^8 ///speed of light in m/s
-E=delp*c
-disp("energy of an electron is E="+string(E)+"J")
+clc
+//to calculate uncertainity in frequency
+h = 3.16152649*10^-26;
+delt=10^-8 //uncertainity in time
+delnu=1/(2*%pi*delt)
+disp("minimum uncertainity in the frequency of a photon is delnu="+string(delnu)+"sec^-1")
+//to use the uncertainity principle to place a lower limit on the energy an electron must have if it is to be part of a nucleus
+delx=5*10^-15 //uncertainity in position
+delp=h/(2*2*%pi*delx) //uncertainbity in momentum
+c=3*10^8 ///speed of light in m/s
+E=delp*c
+disp("energy of an electron is E="+string(E)+"J") \ No newline at end of file