summaryrefslogtreecommitdiff
path: root/24/CH43/EX43.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH43/EX43.8
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/CH43/EX43.8')
-rwxr-xr-x24/CH43/EX43.8/Example43_8.sce10
-rwxr-xr-x24/CH43/EX43.8/Example43_8_result.txt2
2 files changed, 12 insertions, 0 deletions
diff --git a/24/CH43/EX43.8/Example43_8.sce b/24/CH43/EX43.8/Example43_8.sce
new file mode 100755
index 000000000..8eca56bd6
--- /dev/null
+++ b/24/CH43/EX43.8/Example43_8.sce
@@ -0,0 +1,10 @@
+//Given that
+ratio = 10.3
+Th = 1.25*10^9 //in years
+
+//Sample Problem 43-8
+txt = mopen('Example43_8_result.txt','wt')
+mfprintf(txt, '**Sample Problem 43-8**\n')
+t = Th * log(1 + ratio)/log(2)
+mfprintf(txt, 'The life of rock is %eyears', t)
+mclose(txt) \ No newline at end of file
diff --git a/24/CH43/EX43.8/Example43_8_result.txt b/24/CH43/EX43.8/Example43_8_result.txt
new file mode 100755
index 000000000..4a762525a
--- /dev/null
+++ b/24/CH43/EX43.8/Example43_8_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 43-8**
+The life of rock is 4.372814e+009years \ No newline at end of file