summaryrefslogtreecommitdiff
path: root/3014/CH1/EX1.21/Ex1_21.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3014/CH1/EX1.21/Ex1_21.sce
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 '3014/CH1/EX1.21/Ex1_21.sce')
-rwxr-xr-x3014/CH1/EX1.21/Ex1_21.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3014/CH1/EX1.21/Ex1_21.sce b/3014/CH1/EX1.21/Ex1_21.sce
new file mode 100755
index 000000000..cc1e81b08
--- /dev/null
+++ b/3014/CH1/EX1.21/Ex1_21.sce
@@ -0,0 +1,10 @@
+clc
+//Given that
+k = 8.6e-5 // Boltzmann constant
+t = 37 // Temperature in degree Celsius
+h = 6.62e-34 // Plank constant
+m = 1.67e-27 // Mass of neutron
+printf("Example 1.21")
+lambda = h/sqrt(3*m*(k*1.6e-19)*(t+273))// Calculation of wavelength
+printf("\n Wavelength of neutron at %d degree Celsius is %f angstrom.\n\n\n",t,lambda*1e10)
+