summaryrefslogtreecommitdiff
path: root/3535/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3535/CH1/EX1.2/Ex1_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3535/CH1/EX1.2/Ex1_2.sce')
-rw-r--r--3535/CH1/EX1.2/Ex1_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3535/CH1/EX1.2/Ex1_2.sce b/3535/CH1/EX1.2/Ex1_2.sce
new file mode 100644
index 000000000..b7951ee79
--- /dev/null
+++ b/3535/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,11 @@
+//Chapter 1, Example 1.2, Page 22
+clc
+clear
+//Find number of 10B molecules in 5g of Boron
+m = 5 //g
+Na = 0.6022*10**24 //atoms/mol
+AB = 10.811 //Atomic weight of 10B , g/mol
+NB = (m*Na)/(AB)
+printf("The number of Boron atoms = %e atoms",NB);
+
+//Answers may vary due to round off error