summaryrefslogtreecommitdiff
path: root/1271/CH12/EX12.12/example12_12.sce
blob: 9d079d4c61dda9a06d5c716002d66e90f34a80af (plain)
1
2
3
4
5
6
7
8
9
10
11
clc 
// Given that
t = 2 // life period of radioactive substance in years
T = 4 // time in years
m = 10 // mass of substance in mg
// Sample Problem 12 on page no. 12.35
printf("\n # PROBLEM 12 # \n")
printf("Standard formula used \n")
printf(" N = N_0/2^(n) ...... fraction after n half lives.\n")
N = m / T // in mg
printf("\n  Substance remained unchanged after 4 years is %f mg.",N)