diff options
Diffstat (limited to '3648/CH27/EX27.8')
-rw-r--r-- | 3648/CH27/EX27.8/Ex27_8.sce | 9 | ||||
-rw-r--r-- | 3648/CH27/EX27.8/Ex27_8.txt | 2 |
2 files changed, 11 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)
diff --git a/3648/CH27/EX27.8/Ex27_8.txt b/3648/CH27/EX27.8/Ex27_8.txt new file mode 100644 index 000000000..88907073a --- /dev/null +++ b/3648/CH27/EX27.8/Ex27_8.txt @@ -0,0 +1,2 @@ +The decay constant is lamda=0.0087800 h^-1
+ The Half life is t0.5=79 h
\ No newline at end of file |