summaryrefslogtreecommitdiff
path: root/3369/CH3/EX3.4/Ex3_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3369/CH3/EX3.4/Ex3_4.sce')
-rwxr-xr-x3369/CH3/EX3.4/Ex3_4.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3369/CH3/EX3.4/Ex3_4.sce b/3369/CH3/EX3.4/Ex3_4.sce
new file mode 100755
index 000000000..26f96dbc7
--- /dev/null
+++ b/3369/CH3/EX3.4/Ex3_4.sce
@@ -0,0 +1,12 @@
+//Chapter 3, Exmaple 4, page 105
+//Temperature & Average K.E of He atom
+clc
+clear
+m0 = 1
+v2 = 1.6*10**-19 // V^2
+KE = m0*v2
+//Using equation 3.3
+T = 2*KE/(3*1.38*10**-23)
+printf("\nK.E = %e J",KE)
+printf("\nTemperature = %e K",T)
+