CMS 3D CMS Logo

VVIObjF.cc
Go to the documentation of this file.
1 //
2 // VVIObjF.cc Version 2.0
3 //
4 // Port of CERNLIB G116 Functions vviden/vvidis
5 //
6 // Created by Morris Swartz on 1/14/2010.
7 // 2010 __TheJohnsHopkinsUniversity__.
8 //
9 // V1.1 - make dzero call both fcns with a switch
10 // V1.2 - remove inappriate initializers and add methods to return non-zero/normalized region
11 // V2.0 - restructuring and speed improvements by V. Innocente
12 // V3.0 - further simplification and speedup by Tamas Vami
13 //
14 
15 #ifndef SI_PIXEL_TEMPLATE_STANDALONE
16 // put CMSSW location of SimpleHelix.h here
18 #else
19 #include "VVIObjF.h"
20 #endif
21 
22 #include <cmath>
23 #include <algorithm>
24 #include "vdt/vdtMath.h"
25 
26 namespace VVIObjFDetails {
27  void sincosint(float x, float& sint, float& cint);
28  float expint(float x);
29 
30  template <typename F>
31  int dzero(float a, float b, float& x0, float& rv, float eps, int mxf, F func);
32 } // namespace VVIObjFDetails
33 
34 // ***************************************************************************************************************************************
40 // ***************************************************************************************************************************************
41 
42 // WARNING: if you change this, dont forget to change VVIObjF::VVIObjF(float kappa) too
43 VVIObjF::VVIObjF(float kappa, float beta2, int mode) : mode_(mode) {
44  const float xp[9] = {9.29, 2.47, .89, .36, .15, .07, .03, .02, 0.0};
45  const float xq[7] = {.012, .03, .08, .26, .87, 3.83, 11.0};
46  float h_[7];
47  float q, u, h4, h5, h6, q2, d, ll, ul, rv;
48  int lp, lq, k, l, n;
49 
50  // Make sure that the inputs are reasonable
51 
52  if (kappa < 0.01f)
53  kappa = 0.01f;
54  if (kappa > 10.f)
55  kappa = 10.f;
56  if (beta2 < 0.f)
57  beta2 = 0.f;
58  if (beta2 > 1.f)
59  beta2 = 1.f;
60 
61  float invKappa = 1.f / kappa;
62  h_[4] = 1.f - beta2 * 0.42278433999999998f + (7.6f * invKappa);
63  h_[5] = beta2;
64  h_[6] = 1.f - beta2;
65  h4 = -(7.6f * invKappa) - (beta2 * .57721566f + 1.f);
66  h5 = vdt::fast_logf(kappa);
67  h6 = invKappa;
68  t0_ = (h4 - h_[4] * h5 - (h_[4] + beta2) * (vdt::fast_logf(h_[4]) + VVIObjFDetails::expint(h_[4])) +
69  vdt::fast_expf(-h_[4])) /
70  h_[4];
71 
72  // Set up limits for the root search
73 
74  for (lp = 0; lp < 9; ++lp) {
75  if (kappa >= xp[lp])
76  break;
77  }
78  ll = -float(lp) - 1.5f;
79  for (lq = 0; lq < 7; ++lq) {
80  if (kappa <= xq[lq])
81  break;
82  }
83  ul = lq - 6.5f;
84  auto f2 = [h_](float x) {
85  return h_[4] - x + h_[5] * (vdt::fast_logf(std::abs(x)) + VVIObjFDetails::expint(x)) - h_[6] * vdt::fast_expf(-x);
86  };
87  VVIObjFDetails::dzero(ll, ul, u, rv, 1.e-3f, 100, f2);
88  q = 1. / u;
89  t1_ = h4 * q - h5 - (beta2 * q + 1.f) * (vdt::fast_logf((fabs(u))) + VVIObjFDetails::expint(u)) +
90  vdt::fast_expf(-u) * q;
91  t_ = t1_ - t0_;
92  omega_ = 6.2831853000000004f / t_;
93  h_[0] = kappa * (beta2 * .57721566f + 2.f) + 9.9166128600000008f;
94  if (kappa >= .07) {
95  h_[0] += 6.90775527f;
96  }
97  h_[1] = beta2 * kappa;
98  h_[2] = h6 * omega_;
99  h_[3] = omega_ * 1.5707963250000001f;
100  auto f1 = [h_](float x) { return h_[0] + h_[1] * vdt::fast_logf(h_[2] * x) - h_[3] * x; };
101  VVIObjFDetails::dzero(5.f, 155.f, x0_, rv, 1.e-3f, 100, f1);
102  n = x0_ + 1.;
103  d = vdt::fast_expf(kappa * (beta2 * (.57721566f - h5) + 1.f)) * .31830988654751274f;
104  a_[n - 1] = 0.f;
105  if (mode_ == 0) {
106  a_[n - 1] = omega_ * .31830988654751274f;
107  }
108  q = -1.;
109  q2 = 2.;
110 
111  float x[n];
112  x[0] = 0.f;
113  float x1[n];
114  x1[0] = 0.f;
115  float c1[n];
116  c1[0] = 0.f;
117  float c2[n];
118  c2[0] = 0.f;
119  float c3[n];
120  c3[0] = 0.f;
121  float c4[n];
122  c4[0] = 0.f;
123  float s[n];
124  s[0] = 0.f;
125  float c[n];
126  c[0] = 0.f;
127  float xf1[n];
128  xf1[0] = 0.f;
129  float xf2[n];
130  xf2[0] = 0.f;
131  for (k = 1; k < n; ++k) {
132  x[k] = omega_ * k;
133  x1[k] = h6 * x[k];
134  }
135  for (k = 1; k < n; ++k) {
136  VVIObjFDetails::sincosint(x1[k], c2[k], c1[k]);
137  }
138  for (k = 1; k < n; ++k) {
139  c1[k] = vdt::fast_logf(x[k]) - c1[k];
140  }
141  for (k = 1; k < n; ++k) {
142  vdt::fast_sincosf(x1[k], c3[k], c4[k]);
143  xf1[k] = kappa * (beta2 * c1[k] - c4[k]) - x[k] * c2[k];
144  xf2[k] = x[k] * c1[k] + kappa * (c3[k] + beta2 * c2[k]) + t0_ * x[k];
145  }
146  for (k = 1; k < n; ++k) {
147  vdt::fast_sincosf(xf2[k], s[k], c[k]);
148  }
149  float d1[n];
150  d1[0] = 0.f;
151  if (mode_ == 0) {
152  for (k = 1; k < n; ++k) {
153  d1[k] = q * d * omega_ * vdt::fast_expf(xf1[k]);
154  q = -q;
155  }
156  for (k = 1; k < n; ++k) {
157  l = n - k;
158  a_[l - 1] = d1[k] * c[k];
159  b_[l - 1] = -d1[k] * s[k];
160  }
161  } else {
162  for (k = 1; k < n; ++k) {
163  d1[k] = q * d * vdt::fast_expf(xf1[k]) / k;
164  q = -q;
165  }
166  for (k = 1; k < n; ++k) {
167  l = n - k;
168  a_[l - 1] = d1[k] * s[k];
169  }
170  for (k = 1; k < n; ++k) {
171  l = n - k;
172  b_[l - 1] = d1[k] * c[k];
173  }
174  for (k = 1; k < n; ++k) {
175  l = n - k;
176  a_[n - 1] += q2 * a_[l - 1];
177  q2 = -q2;
178  }
179  }
180 } // VVIObjF
181 
182 // ***************************************************************************************************************************************
186 // ***************************************************************************************************************************************
187 
188 // WARNING: if you change this, dont forget to change the full constructor too
189 VVIObjF::VVIObjF(float kappa) : mode_(1) {
190  const float xp[9] = {9.29, 2.47, .89, .36, .15, .07, .03, .02, 0.0};
191  const float xq[7] = {.012, .03, .08, .26, .87, 3.83, 11.0};
192  float h_[5];
193  float q, u, h4, h5, h6, q2, d, ll, ul, rv;
194  int lp, lq, k, l, n;
195 
196  // Make sure that the inputs are reasonable
197 
198  if (kappa < 0.01f)
199  kappa = 0.01f;
200  if (kappa > 10.f)
201  kappa = 10.f;
202 
203  float invKappa = 1.f / kappa;
204  h_[4] = 0.57721566f + (7.6f * invKappa);
205  h4 = -(7.6f * invKappa) - 1.57721566f;
206  h5 = vdt::fast_logf(kappa);
207  h6 = invKappa;
208  t0_ = (h4 - h_[4] * h5 - (h_[4] + 1.f) * (vdt::fast_logf(h_[4]) + VVIObjFDetails::expint(h_[4])) +
209  vdt::fast_expf(-h_[4])) /
210  h_[4];
211 
212  // Set up limits for the root search
213 
214  for (lp = 0; lp < 9; ++lp) {
215  if (kappa >= xp[lp])
216  break;
217  }
218  ll = -float(lp) - 1.5f;
219  for (lq = 0; lq < 7; ++lq) {
220  if (kappa <= xq[lq])
221  break;
222  }
223  ul = lq - 6.5f;
224  auto f2 = [h_](float x) { return h_[4] - x + (vdt::fast_logf(std::abs(x)) + VVIObjFDetails::expint(x)); };
225  VVIObjFDetails::dzero(ll, ul, u, rv, 1.e-3f, 100, f2);
226  q = 1. / u;
227  t1_ = h4 * q - h5 - (q + 1.f) * (vdt::fast_logf((fabs(u))) + VVIObjFDetails::expint(u)) + vdt::fast_expf(-u) * q;
228  t_ = t1_ - t0_;
229  omega_ = 6.2831853000000004f / t_;
230  h_[0] = kappa * 2.57721566f + 9.9166128600000008f;
231  if (kappa >= .07) {
232  h_[0] += 6.90775527f;
233  }
234  h_[1] = kappa;
235  h_[2] = h6 * omega_;
236  h_[3] = omega_ * 1.5707963250000001f;
237  auto f1 = [h_](float x) { return h_[0] + h_[1] * vdt::fast_logf(h_[2] * x) - h_[3] * x; };
238  VVIObjFDetails::dzero(5.f, 155.f, x0_, rv, 1.e-3f, 100, f1);
239  n = x0_ + 1.;
240  d = vdt::fast_expf(kappa * ((0.57721566f - h5) + 1.f)) * .31830988654751274f;
241  a_[n - 1] = 0.f;
242  q = -1.;
243  q2 = 2.;
244 
245  float x[n];
246  x[0] = 0.f;
247  float x1[n];
248  x1[0] = 0.f;
249  float c1[n];
250  c1[0] = 0.f;
251  float c2[n];
252  c2[0] = 0.f;
253  float c3[n];
254  c3[0] = 0.f;
255  float c4[n];
256  c4[0] = 0.f;
257  float s[n];
258  s[0] = 0.f;
259  float c[n];
260  c[0] = 0.f;
261  float xf1[n];
262  xf1[0] = 0.f;
263  float xf2[n];
264  xf2[0] = 0.f;
265  for (k = 1; k < n; ++k) {
266  x[k] = omega_ * k;
267  x1[k] = h6 * x[k];
268  }
269  for (k = 1; k < n; ++k) {
270  VVIObjFDetails::sincosint(x1[k], c2[k], c1[k]);
271  }
272  for (k = 1; k < n; ++k) {
273  c1[k] = vdt::fast_logf(x[k]) - c1[k];
274  }
275  for (k = 1; k < n; ++k) {
276  vdt::fast_sincosf(x1[k], c3[k], c4[k]);
277  xf1[k] = kappa * (c1[k] - c4[k]) - x[k] * c2[k];
278  xf2[k] = x[k] * c1[k] + kappa * (c3[k] + c2[k]) + t0_ * x[k];
279  }
280  for (k = 1; k < n; ++k) {
281  vdt::fast_sincosf(xf2[k], s[k], c[k]);
282  }
283  float d1[n];
284  d1[0] = 0.f;
285  for (k = 1; k < n; ++k) {
286  d1[k] = q * d * vdt::fast_expf(xf1[k]) / k;
287  q = -q;
288  }
289  for (k = 1; k < n; ++k) {
290  l = n - k;
291  a_[l - 1] = d1[k] * s[k];
292  }
293  for (k = 1; k < n; ++k) {
294  l = n - k;
295  b_[l - 1] = d1[k] * c[k];
296  }
297  for (k = 1; k < n; ++k) {
298  l = n - k;
299  a_[n - 1] += q2 * a_[l - 1];
300  q2 = -q2;
301  }
302 
303 } // VVIObjF with kappa only
304 
305 // *************************************************************************************************************************************
309 // *************************************************************************************************************************************
310 
311 float VVIObjF::fcn(float x) const {
312  // Local variables
313 
314  float f, u, y, a0, a1;
315  float a2 = 0.;
316  float b1, b0, b2, cof;
317  int k, n, n1;
318 
319  n = x0_;
320  if (x < t0_) {
321  f = 0.f;
322  } else if (x <= t1_) {
323  y = x - t0_;
324  u = omega_ * y - 3.141592653589793f;
325  float su, cu;
326  vdt::fast_sincosf(u, su, cu);
327  cof = cu * 2.f;
328  a1 = 0.;
329  a0 = a_[0];
330  n1 = n + 1;
331  for (k = 2; k <= n1; ++k) {
332  a2 = a1;
333  a1 = a0;
334  a0 = a_[k - 1] + cof * a1 - a2;
335  }
336  b1 = 0.;
337  b0 = b_[0];
338  for (k = 2; k <= n; ++k) {
339  b2 = b1;
340  b1 = b0;
341  b0 = b_[k - 1] + cof * b1 - b2;
342  }
343  f = (a0 - a2) * .5f + b0 * su;
344  if (mode_ != 0) {
345  f += y / t_;
346  }
347  } else {
348  f = 0.f;
349  if (mode_ != 0) {
350  f = 1.f;
351  }
352  }
353  return f;
354 } // fcn
355 
356 // *************************************************************************************************************************************
360 // *************************************************************************************************************************************
361 
362 void VVIObjF::limits(float& xl, float& xu) const {
363  xl = t0_;
364  xu = t1_;
365  return;
366 } // limits
367 
368 #include "sicif.h"
369 namespace VVIObjFDetails {
370  void sincosint(float x, float& sint, float& cint) { sicif(x, sint, cint); }
371 
372  float expint(float x) {
373  // Initialized data
374 
375  const float zero = 0.;
376  const float q2[7] = {
377  .10340013040487, 3.319092135933, 20.449478501379, 41.280784189142, 32.426421069514, 10.041164382905, 1.};
378  const float p3[6] = {
379  -2.3909964453136, -147.98219500504, -254.3763397689, -119.55761038372, -19.630408535939, -.9999999999036};
380  const float q3[6] = {177.60070940351, 530.68509610812, 462.23027156148, 156.81843364539, 21.630408494238, 1.};
381  const float p4[8] = {-8.6693733995107,
382  -549.14226552109,
383  -4210.0161535707,
384  -249301.39345865,
385  -119623.66934925,
386  -22174462.775885,
387  3892804.213112,
388  -391546073.8091};
389  const float q4[8] = {34.171875,
390  -1607.0892658722,
391  35730.029805851,
392  -483547.43616216,
393  4285596.2461175,
394  -24903337.574054,
395  89192576.757561,
396  -165254299.72521};
397  const float a1[8] = {-2.1808638152072,
398  -21.901023385488,
399  9.3081638566217,
400  25.076281129356,
401  -33.184253199722,
402  60.121799083008,
403  -43.253113287813,
404  1.0044310922808};
405  const float b1[8] = {0.,
406  3.9370770185272,
407  300.89264837292,
408  -6.2504116167188,
409  1003.6743951673,
410  14.325673812194,
411  2736.2411988933,
412  .52746885196291};
413  const float a2[8] = {-3.4833465360285,
414  -18.65454548834,
415  -8.2856199414064,
416  -32.34673303054,
417  17.960168876925,
418  1.7565631546961,
419  -1.9502232128966,
420  .99999429607471};
421  const float b2[8] = {0.,
422  69.500065588743,
423  57.283719383732,
424  25.777638423844,
425  760.76114800773,
426  28.951672792514,
427  -3.4394226689987,
428  1.0008386740264};
429  const float a3[6] = {
430  -27.780928934438, -10.10479081576, -9.1483008216736, -5.0223317461851, -3.0000077799358, 1.0000000000704};
431  const float one = 1.;
432  const float b3[6] = {0., 122.39993926823, 2.7276100778779, -7.1897518395045, -2.9990118065262, 1.999999942826};
433  const float two = 2.;
434  const float three = 3.;
435  const float x0 = .37250741078137;
436  const float xl[6] = {-24., -12., -6., 0., 1., 4.};
437  const float p1[5] = {4.293125234321, 39.894153870321, 292.52518866921, 425.69682638592, -434.98143832952};
438  const float q1[5] = {1., 18.899288395003, 150.95038744251, 568.05252718987, 753.58564359843};
439  const float p2[7] = {.43096783946939,
440  6.9052252278444,
441  23.019255939133,
442  24.378408879132,
443  9.0416155694633,
444  .99997957705159,
445  4.656271079751e-7};
446 
447  // Local variables
448  float v, y, ap, bp, aq, dp, bq, dq;
449 
450  if (x <= xl[0]) {
451  ap = a3[0] - x;
452  for (int i__ = 2; i__ <= 5; ++i__) {
453  ap = a3[i__ - 1] - x + b3[i__ - 1] / ap;
454  }
455  y = vdt::fast_expf(-x) / x * (one - (a3[5] + b3[5] / ap) / x);
456  } else if (x <= xl[1]) {
457  ap = a2[0] - x;
458  for (int i__ = 2; i__ <= 7; ++i__) {
459  ap = a2[i__ - 1] - x + b2[i__ - 1] / ap;
460  }
461  y = vdt::fast_expf(-x) / x * (a2[7] + b2[7] / ap);
462  } else if (x <= xl[2]) {
463  ap = a1[0] - x;
464  for (int i__ = 2; i__ <= 7; ++i__) {
465  ap = a1[i__ - 1] - x + b1[i__ - 1] / ap;
466  }
467  y = vdt::fast_expf(-x) / x * (a1[7] + b1[7] / ap);
468  } else if (x < xl[3]) {
469  v = -two * (x / three + one);
470  bp = zero;
471  dp = p4[0];
472  for (int i__ = 2; i__ <= 8; ++i__) {
473  ap = bp;
474  bp = dp;
475  dp = p4[i__ - 1] - ap + v * bp;
476  }
477  bq = zero;
478  dq = q4[0];
479  for (int i__ = 2; i__ <= 8; ++i__) {
480  aq = bq;
481  bq = dq;
482  dq = q4[i__ - 1] - aq + v * bq;
483  }
484  y = -vdt::fast_logf(-x / x0) + (x + x0) * (dp - ap) / (dq - aq);
485  } else if (x == xl[3]) {
486  return zero;
487  } else if (x < xl[4]) {
488  ap = p1[0];
489  aq = q1[0];
490  for (int i__ = 2; i__ <= 5; ++i__) {
491  ap = p1[i__ - 1] + x * ap;
492  aq = q1[i__ - 1] + x * aq;
493  }
494  y = -vdt::fast_logf(x) + ap / aq;
495  } else if (x <= xl[5]) {
496  y = one / x;
497  ap = p2[0];
498  aq = q2[0];
499  for (int i__ = 2; i__ <= 7; ++i__) {
500  ap = p2[i__ - 1] + y * ap;
501  aq = q2[i__ - 1] + y * aq;
502  }
503  y = vdt::fast_expf(-x) * ap / aq;
504  } else {
505  y = one / x;
506  ap = p3[0];
507  aq = q3[0];
508  for (int i__ = 2; i__ <= 6; ++i__) {
509  ap = p3[i__ - 1] + y * ap;
510  aq = q3[i__ - 1] + y * aq;
511  }
512  y = vdt::fast_expf(-x) * y * (one + y * ap / aq);
513  }
514  return y;
515  } // expint
516 
517  template <typename F>
518  int dzero(float a, float b, float& x0, float& rv, float eps, int mxf, F func) {
519  /* System generated locals */
520  float d__1, d__2, d__3, d__4;
521 
522  // Local variables
523  float f1, f2, f3, u1, u2, x1, x2, u3, u4, x3, ca, cb, cc, fa, fb, ee, ff;
524  int mc;
525  float xa, xb, fx, xx, su4;
526 
527  xa = std::min(a, b);
528  xb = std::max(a, b);
529  fa = func(xa);
530  fb = func(xb);
531  if (fa * fb > 0.f) {
532  rv = (xb - xa) * -2.f;
533  x0 = 0.f;
534  return 1;
535  }
536  mc = 0;
537  L1:
538  x0 = (xa + xb) * 0.5f;
539  rv = x0 - xa;
540  ee = eps * (std::abs(x0) + 1.f);
541  if (rv <= ee) {
542  rv = ee;
543  ff = func(x0);
544  return 0;
545  }
546  f1 = fa;
547  x1 = xa;
548  f2 = fb;
549  x2 = xb;
550  L2:
551  fx = func(x0);
552  ++mc;
553  if (mc > mxf) {
554  rv = (d__1 = xb - xa, fabs(d__1)) * -0.5f;
555  x0 = 0.;
556  return 0;
557  }
558  if (fx * fa > 0.f) {
559  xa = x0;
560  fa = fx;
561  } else {
562  xb = x0;
563  fb = fx;
564  }
565  L3:
566  u1 = f1 - f2;
567  u2 = x1 - x2;
568  u3 = f2 - fx;
569  u4 = x2 - x0;
570  if (u2 == 0.f || u4 == 0.f) {
571  goto L1;
572  }
573  f3 = fx;
574  x3 = x0;
575  u1 /= u2;
576  u2 = u3 / u4;
577  ca = u1 - u2;
578  cb = (x1 + x2) * u2 - (x2 + x0) * u1;
579  cc = (x1 - x0) * f1 - x1 * (ca * x1 + cb);
580  if (ca == 0.f) {
581  if (cb == 0.f) {
582  goto L1;
583  }
584  x0 = -cc / cb;
585  } else {
586  u3 = cb / (ca * 2.f);
587  u4 = u3 * u3 - cc / ca;
588  if (u4 < 0.f) {
589  goto L1;
590  }
591  su4 = std::abs(u4);
592  if (x0 + u3 < 0.f) {
593  su4 = -su4;
594  }
595  x0 = -u3 + su4;
596  }
597  if (x0 < xa || x0 > xb) {
598  goto L1;
599  }
600  // Computing MIN
601  d__3 = (d__1 = x0 - x3, std::abs(d__1));
602  d__4 = (d__2 = x0 - x2, std::abs(d__2));
603  rv = std::min(d__3, d__4);
604  ee = eps * (std::abs(x0) + 1);
605  if (rv > ee) {
606  f1 = f2;
607  x1 = x2;
608  f2 = f3;
609  x2 = x3;
610  goto L2;
611  }
612  fx = func(x0);
613  if (fx == 0.f) {
614  rv = ee;
615  ff = func(x0);
616  return 0;
617  }
618  if (fx * fa < 0.f) {
619  xx = x0 - ee;
620  if (xx <= xa) {
621  rv = ee;
622  ff = func(x0);
623  return 0;
624  }
625  ff = func(xx);
626  fb = ff;
627  xb = xx;
628  } else {
629  xx = x0 + ee;
630  if (xx >= xb) {
631  rv = ee;
632  ff = func(x0);
633  return 0;
634  }
635  ff = func(xx);
636  fa = ff;
637  xa = xx;
638  }
639  if (fx * ff > 0.f) {
640  mc += 2;
641  if (mc > mxf) {
642  rv = (d__1 = xb - xa, std::abs(d__1)) * -0.5f;
643  x0 = 0.f;
644  return 0;
645  }
646  f1 = f3;
647  x1 = x3;
648  f2 = fx;
649  x2 = x0;
650  x0 = xx;
651  fx = ff;
652  goto L3;
653  }
654  /* L4: */
655  rv = ee;
656  ff = func(x0);
657  return 0;
658  } // dzero
659 
660 } // namespace VVIObjFDetails
float omega_
Definition: VVIObjF.h:40
float t1_
Definition: VVIObjF.h:38
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
const int mode_
returns the limits on the non-zero (mode=0) or normalized region (mode=1)
Definition: VVIObjF.h:36
void sincosint(float x, float &sint, float &cint)
Definition: VVIObjF.cc:370
float x0_
Definition: VVIObjF.h:41
void limits(float &xl, float &xu) const
density (mode=0) or distribution (mode=1) function
Definition: VVIObjF.cc:362
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
int dzero(float a, float b, float &x0, float &rv, float eps, int mxf, F func)
Private version of the exponential integral.
Definition: VVIObjF.cc:518
float t0_
Definition: VVIObjF.h:37
d
Definition: ztail.py:151
float expint(float x)
Private version of the cosine and sine integral.
Definition: VVIObjF.cc:372
float b_[155]
Definition: VVIObjF.h:43
bias2_t b2[25]
Definition: b2.h:9
float fcn(float x) const
Definition: VVIObjF.cc:311
static constexpr float a0
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
VVIObjF(float kappa, float beta2, int mode)
Constructor.
Definition: VVIObjF.cc:43
float fast_expf(float x)
float x
static constexpr float b0
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163
static constexpr float d1
float fast_logf(float x)
float t_
Definition: VVIObjF.h:39
static constexpr float b1
float a_[155]
Definition: VVIObjF.h:42
int sicif(float xx, float &si, float &ci)
Definition: sicif.h:219