blob: b37c5c06e51b597d2195639b86395f67008738a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//Given
t=1500
N=0.01
N0=0.999
//Calculation
//
T=t*log(N)/log(0.5)
T1=t*log(N0)/log(0.5)
//Result
printf("\n (i) Years will reduce to 1 centigram is %0.1f years",T)
printf("\n (ii) Years will lose 1 mg is %0.2f years",T1)
|