summaryrefslogtreecommitdiff
path: root/446/CH12/EX12.5/12_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /446/CH12/EX12.5/12_5.sce
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 '446/CH12/EX12.5/12_5.sce')
-rwxr-xr-x446/CH12/EX12.5/12_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/446/CH12/EX12.5/12_5.sce b/446/CH12/EX12.5/12_5.sce
new file mode 100755
index 000000000..131ab49c5
--- /dev/null
+++ b/446/CH12/EX12.5/12_5.sce
@@ -0,0 +1,17 @@
+clear
+clc
+disp('Exa -12.5(a)');
+t12=2.7*24*3600; //converting days into seconds
+w=0.693/t12; //lambeda
+printf('The decay constant is %e\n /sec',w);
+disp('Exa -12.5(b)');
+printf('The decay constant is equal to probability of decay in one second hence %e \n',w);
+disp('Exa -12.5(c)');
+m=10^-6;Na=6.023*10^23; M=198; //given values and constants
+N=m*Na/M; //number of atoms in the sample
+Ao=w*N; //activity
+printf('The activity was found out to be %e Ci',Ao);
+disp('Exa -12.5(d)');
+t=7*24*3600; //given time
+A=Ao*%e^-(w*t); //activity
+printf('The activity after one week was found out to be %.2e decays/sec',A); \ No newline at end of file