diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3557/CH2/EX2.1/Ex2_1.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3557/CH2/EX2.1/Ex2_1.sce')
-rw-r--r-- | 3557/CH2/EX2.1/Ex2_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3557/CH2/EX2.1/Ex2_1.sce b/3557/CH2/EX2.1/Ex2_1.sce new file mode 100644 index 000000000..819e2089a --- /dev/null +++ b/3557/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,16 @@ +// Example 2.1//
+d= 8.93;//g/cm^3 // density of copper
+a=63.55;//amu // atomic mass of copper
+//The volume sampled
+c=1;//mew meter //deep cylinder in the surface of solid copper
+e=2;//given
+f=1;//cm //centimeter
+g=10^4;//mew m
+vs=(%pi*(c/e)^2)*(1/10^4)^3//Volume sampled formula
+mprintf(" vs = %e cm^3",vs)
+//Thus, the number of atoms sampled
+a1=8.93;//g/cm^3
+b=0.602*10^24;//atoms//Avogadro's number
+c1=63.55;//g
+ns=a1*vs*b/c1
+mprintf("\n ns = %e atoms",ns)
|