comparison code_part1/OSTC_code_c_part2/p2_tables.romdata @ 364:bdcc5a5aa8d5

Fix minor rounding in B?hlmann half-times.
author JeanDo
date Thu, 09 Jun 2011 16:05:16 +0200
parents b75564fb3d4b
children
comparison
equal deleted inserted replaced
360:d4ca9196e830 364:bdcc5a5aa8d5
20 // 2011-02-13: jDG Correct some typos. 20 // 2011-02-13: jDG Correct some typos.
21 // 2011-05-17: jDG Optimized using interleaved arrays. 21 // 2011-05-17: jDG Optimized using interleaved arrays.
22 // 22 //
23 // ************************************************************** 23 // **************************************************************
24 24
25 rom const float buhlmann_ab[] = { 25 rom const float buhlmann_ab[4*16] = {
26 // Data ZH-L16C, from Bühlmann Tauchmedizin 2002, option 1a (4mn) 26 // Data ZH-L16C, from Bühlmann Tauchmedizin 2002, option 1a (4mn)
27 // a for N2 b for N2 a of He b for He 27 // a for N2 b for N2 a of He b for He
28 1.2599, 0.5050, 1.7424, 0.4245, 28 1.2599, 0.5050, 1.7424, 0.4245,
29 1.0000, 0.6514, 1.3830, 0.5747, 29 1.0000, 0.6514, 1.3830, 0.5747,
30 0.8618, 0.7222, 1.1919, 0.6527, 30 0.8618, 0.7222, 1.1919, 0.6527,
41 0.2610, 0.9544, 0.5176, 0.9171, 41 0.2610, 0.9544, 0.5176, 0.9171,
42 0.2480, 0.9602, 0.5172, 0.9217, 42 0.2480, 0.9602, 0.5172, 0.9217,
43 0.2327, 0.9653, 0.5119, 0.9267 43 0.2327, 0.9653, 0.5119, 0.9267
44 }; 44 };
45 45
46 rom const float buhlmann_ht[] = { 46 rom const float buhlmann_ht[2*16] = {
47 // Compartiment half-life, in minute 47 // Compartiment half-life, in minute
48 //-- N2 ---- He --------------------------------------------------------------------- 48 //-- N2 ---- He ---------------------------------------------------------------------
49 4, 1.51, 49 4.0, 1.51,
50 8, 3.02, 50 8.0, 3.02,
51 12, 4.72, 51 12.5, 4.72,
52 18, 6.99, 52 18.5, 6.99,
53 27, 10.21, 53 27.0, 10.21,
54 39, 14.48, 54 38.3, 14.48,
55 55, 20.53, 55 54.3, 20.53,
56 77, 29.11, 56 77.0, 29.11,
57 109, 41.20, 57 109.0, 41.20,
58 146, 55.19, 58 146.0, 55.19,
59 187, 70.69, 59 187.0, 70.69,
60 239, 90.34, 60 239.0, 90.34,
61 305, 115.29, 61 305.0, 115.29,
62 390, 147.42, 62 390.0, 147.42,
63 498, 188.24, 63 498.0, 188.24,
64 635, 240.03 64 635.0, 240.03
65 }; 65 };
66 66
67 rom const float e2secs[] = { 67 rom const float e2secs[2*16] = {
68 // result of 1 - 2^(-1/(30sec*HT)) 68 // result of 1 - 2^(-1/(30sec*HT))
69 //---- N2 ------------- He ------------ 69 //---- N2 ------------- He ------------
70 5.75958E-03, 1.51848E-02, 70 5.75958E-03, 1.51848E-02,
71 2.88395E-03, 7.62144E-03, 71 2.88395E-03, 7.62144E-03,
72 1.92356E-03, 4.88315E-03, 72 1.84669E-03, 4.88315E-03,
73 1.28278E-03, 3.29997E-03, 73 1.24813E-03, 3.29997E-03,
74 8.55371E-04, 2.26041E-03, 74 8.55371E-04, 2.26041E-03,
75 5.92258E-04, 1.59437E-03, 75 6.03079E-04, 1.59437E-03,
76 4.20001E-04, 1.12479E-03, 76 4.25414E-04, 1.12479E-03,
77 3.00019E-04, 7.93395E-04, 77 3.00019E-04, 7.93395E-04,
78 2.11949E-04, 5.60641E-04, 78 2.11949E-04, 5.60641E-04,
79 1.58240E-04, 4.18555E-04, 79 1.58240E-04, 4.18555E-04,
80 1.23548E-04, 3.26795E-04, 80 1.23548E-04, 3.26795E-04,
81 9.66686E-05, 2.55722E-04, 81 9.66686E-05, 2.55722E-04,
84 4.63943E-05, 1.22734E-04, 84 4.63943E-05, 1.22734E-04,
85 3.63850E-05, 9.62538E-05 85 3.63850E-05, 9.62538E-05
86 //------------------------------------- 86 //-------------------------------------
87 }; 87 };
88 88
89 rom const float e1min[] = { 89 rom const float e1min[2*16] = {
90 // Integration constant for 1 minute, 90 // Integration constant for 1 minute,
91 // Ie. 1- 2^(-1/HT) 91 // Ie. 1- 2^(-1/HT)
92 //----- N2 --------- e 1min He -------- 92 //----- N2 --------- e 1min He --------
93 1.59104E-01, 3.68109E-01, 93 1.59104E-01, 3.68109E-01,
94 8.29960E-02, 2.05084E-01, 94 8.29960E-02, 2.05084E-01,
95 5.61257E-02, 1.36579E-01, 95 5.39424E-02, 1.36579E-01,
96 3.77762E-02, 9.44046E-02, 96 3.67742E-02, 9.44046E-02,
97 2.53454E-02, 6.56359E-02, 97 2.53454E-02, 6.56359E-02,
98 1.76160E-02, 4.67416E-02, 98 1.79351E-02, 4.67416E-02,
99 1.25236E-02, 3.31991E-02, 99 1.26840E-02, 3.31991E-02,
100 8.96152E-03, 2.35301E-02, 100 8.96152E-03, 2.35301E-02,
101 6.33897E-03, 1.66832E-02, 101 6.33897E-03, 1.66832E-02,
102 4.73633E-03, 1.24808E-02, 102 4.73633E-03, 1.24808E-02,
103 3.69981E-03, 9.75753E-03, 103 3.69981E-03, 9.75753E-03,
104 2.89600E-03, 7.64329E-03, 104 2.89600E-03, 7.64329E-03,
107 1.39089E-03, 3.67548E-03, 107 1.39089E-03, 3.67548E-03,
108 1.09097E-03, 2.88359E-03 108 1.09097E-03, 2.88359E-03
109 //------------------------------------- 109 //-------------------------------------
110 }; 110 };
111 111
112 rom const float e10min[] = { 112 rom const float e10min[2*16] = {
113 // The 10 min Value in float notation: 113 // The 10 min Value in float notation:
114 // result of 1 - 2^(-10/ht) 114 // result of 1 - 2^(-10/ht)
115 //---- N2 -------------- He ----------- 115 //---- N2 -------------- He -----------
116 8.23223E-01, 9.89851E-01, 116 8.23223E-01, 9.89851E-01,
117 5.79552E-01, 8.99258E-01, 117 5.79552E-01, 8.99258E-01,
118 4.38769E-01, 7.69737E-01, 118 4.25651E-01, 7.69737E-01,
119 3.19605E-01, 6.29027E-01, 119 3.12487E-01, 6.29027E-01,
120 2.26416E-01, 4.92821E-01, 120 2.26416E-01, 4.92821E-01,
121 1.62832E-01, 3.80407E-01, 121 1.65547E-01, 3.80407E-01,
122 1.18409E-01, 2.86538E-01, 122 1.19840E-01, 2.86538E-01,
123 8.60863E-02, 2.11886E-01, 123 8.60863E-02, 2.11886E-01,
124 6.16117E-02, 1.54849E-01, 124 6.16117E-02, 1.54849E-01,
125 4.63665E-02, 1.18026E-01, 125 4.63665E-02, 1.18026E-01,
126 3.63881E-02, 9.34005E-02, 126 3.63881E-02, 9.34005E-02,
127 2.85855E-02, 7.38569E-02, 127 2.85855E-02, 7.38569E-02,