summaryrefslogtreecommitdiff
path: root/3363/CH12/EX12.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3363/CH12/EX12.3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3363/CH12/EX12.3')
-rwxr-xr-x3363/CH12/EX12.3/Ex12_3.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3363/CH12/EX12.3/Ex12_3.sce b/3363/CH12/EX12.3/Ex12_3.sce
new file mode 100755
index 000000000..f11fbef39
--- /dev/null
+++ b/3363/CH12/EX12.3/Ex12_3.sce
@@ -0,0 +1,12 @@
+//Example 12.3, page 445
+clc
+h=6.63*10^-34//in J-s
+I=(2*%pi)^2*2.66*10^-47//in kg-m2
+m_H=1/(6.02*10^26)//in kg
+E=(h^2)/I
+printf("\n The energy is %e J",E)
+s=.59*10^-19//in J
+k=1.38*10^-23//in j/k
+T=(s)/k
+printf("\n The temperature is %f K",T)
+//Answer diffrence is because of round off \ No newline at end of file