summaryrefslogtreecommitdiff
path: root/1271/CH12/EX12.14
diff options
context:
space:
mode:
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)