summaryrefslogtreecommitdiff
path: root/1271/CH12/EX12.14
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1271/CH12/EX12.14
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 '1271/CH12/EX12.14')
-rwxr-xr-x1271/CH12/EX12.14/14.txt1
-rwxr-xr-x1271/CH12/EX12.14/example12_14.sce11
2 files changed, 12 insertions, 0 deletions
diff --git a/1271/CH12/EX12.14/14.txt b/1271/CH12/EX12.14/14.txt
new file mode 100755
index 000000000..5bc6bd09c
--- /dev/null
+++ b/1271/CH12/EX12.14/14.txt
@@ -0,0 +1 @@
+ Half life of sample is 3.652905 days. \ No newline at end of file
diff --git a/1271/CH12/EX12.14/example12_14.sce b/1271/CH12/EX12.14/example12_14.sce
new file mode 100755
index 000000000..a102bd7ba
--- /dev/null
+++ b/1271/CH12/EX12.14/example12_14.sce
@@ -0,0 +1,11 @@
+clc
+// Given that
+t = 10 // time in days
+r = 15 // percentage fraction of sample which remain
+// Sample Problem 14 on page no. 12.36
+printf("\n # PROBLEM 14 # \n")
+printf("Standard formula used \n")
+printf(" lambda = 0.693 / t_1/2 (Decay constant) \n N =N_0*e^(-lambda*t) \n")
+lambda = log(100 / 15) / t
+T = 0.693 / lambda
+printf("\n Half life of sample is %f days.",T)