summaryrefslogtreecommitdiff
path: root/509/CH7/EX7.2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /509/CH7/EX7.2
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '509/CH7/EX7.2')
-rw-r--r--509/CH7/EX7.2/7_2.sci19
1 files changed, 19 insertions, 0 deletions
diff --git a/509/CH7/EX7.2/7_2.sci b/509/CH7/EX7.2/7_2.sci
new file mode 100644
index 000000000..6fb1a1bc2
--- /dev/null
+++ b/509/CH7/EX7.2/7_2.sci
@@ -0,0 +1,19 @@
+//Chapter 7 Example2//
+clc
+clear
+//half life of radium=hl,decay constant of radium sample=l//
+l=1.3566*10^-11// in s^-1//
+hl=0.6931/l;
+printf("\n Half life = %.3f sec\n",hl);
+// to convert half life in years divide by 365*24*60*60//
+hl1=hl/(365*24*60*60);
+printf("\n Half life in years = %.2f years\n",hl1);
+// number of atoms per gram =n,avagadro number=a,atomic mass=m//
+A=6.023*10^23;
+m=226.095;
+n=A/m;
+// initial activity =a//
+a=l*n;
+printf("\n Initial activity in radium = %.2f disintigration/sec\n",a);
+
+