summaryrefslogtreecommitdiff
path: root/24/CH42/EX42.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH42/EX42.6
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 '24/CH42/EX42.6')
-rwxr-xr-x24/CH42/EX42.6/Example42_6.sce16
-rwxr-xr-x24/CH42/EX42.6/Example42_6_result.txt2
2 files changed, 18 insertions, 0 deletions
diff --git a/24/CH42/EX42.6/Example42_6.sce b/24/CH42/EX42.6/Example42_6.sce
new file mode 100755
index 000000000..679a5426b
--- /dev/null
+++ b/24/CH42/EX42.6/Example42_6.sce
@@ -0,0 +1,16 @@
+//Given that
+No = 10^16 //number per m^3
+T = 298 //in K
+fac = 10^6
+density = 2330 //in kg/m^3
+Na = 6.023*10^23
+M = 28.1*10^-3 //in kg/mol
+
+//Sample Problem 42-6
+pt = mopen('Example42_6_result.txt', 'wt')
+mfprintf(pt, '**Sample Problem 42-6**\n')
+Np = fac*No + No
+NSi = density*Na/M
+fraction = Np/NSi
+mfprintf(pt, 'The fraction of Phosphorus atoms with Silicon atoms is equal to %e', fraction)
+mclose(pt) \ No newline at end of file
diff --git a/24/CH42/EX42.6/Example42_6_result.txt b/24/CH42/EX42.6/Example42_6_result.txt
new file mode 100755
index 000000000..a073fe408
--- /dev/null
+++ b/24/CH42/EX42.6/Example42_6_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 42-6**
+The fraction of Phosphorus atoms with Silicon atoms is equal to 2.002341e-007 \ No newline at end of file