summaryrefslogtreecommitdiff
path: root/767/CH7/EX7.6.3/Ch07Exa7_6_3.sci
blob: b156ee63a38f2bdba79639968795762671398436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// Scilab code Exa7.6.3 : To calculate the %-resolution and resolution in KeV for scintillation detector for Cs-137 :P.no. 315 (2011)
F_W_H_M = 0.72; // Full width at half maximum, V
P_p = 6.0; // Peak position, V
E = 662; // Energy of photopeak, KeV
%_resolution = F_W_H_M/P_p*100; // Percentage resolution in percent
Res_KeV = %_resolution/100*E; // Resolution in KeV for Cs-137
printf("\n The percentage resolution   = %d percent    \n Resolution in KeV  = %4.1f KeV  ", %_resolution, Res_KeV)
// Result
//       The percentage resolution   = 12 percent    
//        Resolution in KeV  = 79.4 KeV