summaryrefslogtreecommitdiff
path: root/1427/CH16/EX16.7/16_7.sce
blob: 8ff3b557b92866d4c1b7084781589747a8c82aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//ques-16.7
//Calculating time required
clc
t1=50;//initial half-life (in s)
t2=25;//new half-life (in s)
a2=1;//concentration (in mol/L)
a1=0.5;//concentration (in mol/L)
n=1+(log10(t1/t2)/log10(a2/a1));
//n=2; 2nd order reaction
k=1/(t1*a1);
p=20;//percentage reduction
x=a1*(1-(p/100));//concentration left after reduction (in mol/L)
t=x/(a1*k*(a1-x));
printf("Time required is %d s.",t);