summaryrefslogtreecommitdiff
path: root/3648/CH27/EX27.8/Ex27_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH27/EX27.8/Ex27_8.sce')
-rw-r--r--3648/CH27/EX27.8/Ex27_8.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3648/CH27/EX27.8/Ex27_8.sce b/3648/CH27/EX27.8/Ex27_8.sce
new file mode 100644
index 000000000..a3e9cc97a
--- /dev/null
+++ b/3648/CH27/EX27.8/Ex27_8.sce
@@ -0,0 +1,9 @@
+//Example 27_8
+clc();
+clear;
+//To calculate the decay constant and half life of substance
+n_no=0.9 //Units in constant
+t=12 //Units in h
+lamda=log(1/n_no)/t //Units in h^-1
+t1=round(0.693/lamda) //Units in h
+printf("The decay constant is lamda=%.7f h^-1\n The Half life is t0.5=%d h",lamda,t1)