22#error "This file must not be included by compiled programs."
25#include <plugins/include/clad/Differentiator/Differentiator.h>
28namespace custom_derivatives {
108template <
typename T,
typename U>
145template <
typename T,
typename U>
165template <
typename T,
typename U>
184template <
typename T,
typename U>
187 auto t = pow_pushforward(
x,
y, 1, 0);
188 *d_x += t.pushforward *
p;
189 t = pow_pushforward(
x,
y, 0, 1);
190 *d_y += t.pushforward *
p;
233ValueAndPushforward<Double_t, Double_t> Pi_pushforward()
235 return {3.1415926535897931, 0.};
238ValueAndPushforward<Double_t, Double_t> Ln10_pushforward()
240 return {2.3025850929940459, 0.};
249inline void landau_pdf_pullback(
double x,
double xi,
double x0,
double d_out,
double *d_x,
double *d_xi,
double *d_x0)
255 static double p1[5] = {0.4259894875,-0.1249762550, 0.03984243700, -0.006298287635, 0.001511162253};
256 static double q1[5] = {1.0 ,-0.3388260629, 0.09594393323, -0.01608042283, 0.003778942063};
258 static double p2[5] = {0.1788541609, 0.1173957403, 0.01488850518, -0.001394989411, 0.0001283617211};
259 static double q2[5] = {1.0 , 0.7428795082, 0.3153932961, 0.06694219548, 0.008790609714};
261 static double p3[5] = {0.1788544503, 0.09359161662,0.006325387654, 0.00006611667319,-0.000002031049101};
262 static double q3[5] = {1.0 , 0.6097809921, 0.2560616665, 0.04746722384, 0.006957301675};
264 static double p4[5] = {0.9874054407, 118.6723273, 849.2794360, -743.7792444, 427.0262186};
265 static double q4[5] = {1.0 , 106.8615961, 337.6496214, 2016.712389, 1597.063511};
267 static double p5[5] = {1.003675074, 167.5702434, 4789.711289, 21217.86767, -22324.94910};
268 static double q5[5] = {1.0 , 156.9424537, 3745.310488, 9834.698876, 66924.28357};
270 static double p6[5] = {1.000827619, 664.9143136, 62972.92665, 475554.6998, -5743609.109};
271 static double q6[5] = {1.0 , 651.4101098, 56974.73333, 165917.4725, -2815759.939};
273 static double a1[3] = {0.04166666667,-0.01996527778, 0.02709538966};
275 static double a2[2] = {-1.845568670,-4.284640743};
277 const double _const0 = 0.3989422803;
278 double v = (
x - x0) / xi;
280 double _d_denlan = 0;
283 double u = ::std::exp(
v + 1.);
286 const double ue = ::std::exp(-1 / u);
287 const double us = ::std::sqrt(u);
291 double denlan = _const0 * (ue / us) * (1 + (a1[0] + (a1[1] + a1[2] * u) * u) * u);
292 _d_denlan += d_out / xi;
293 *d_xi += d_out * -(denlan / (xi * xi));
295 double _r_d3 = _d_denlan;
297 _d_ue += _const0 * _r_d3 * (1 + (a1[0] + (a1[1] + a1[2] * u) * u) * u) / us;
298 double _r5 = _const0 * _r_d3 * (1 + (a1[0] + (a1[1] + a1[2] * u) * u) * u) * -(ue / (us * us));
300 _d_u += a1[2] * _const0 * (ue / us) * _r_d3 * u * u;
301 _d_u += (a1[1] + a1[2] * u) * _const0 * (ue / us) * _r_d3 * u;
302 _d_u += (a1[0] + (a1[1] + a1[2] * u) * u) * _const0 * (ue / us) * _r_d3;
303 double _r_d2 = _d_us;
306 _r4 += _r_d2 * clad::custom_derivatives::sqrt_pushforward(u, 1.).pushforward;
308 double _r_d1 = _d_ue;
311 _r2 += _r_d1 * clad::custom_derivatives::exp_pushforward(-1 / u, 1.).pushforward;
312 double _r3 = _r2 * -(-1 / (u * u));
319 _r1 += _r_d0 * clad::custom_derivatives::exp_pushforward(
v + 1., 1.).pushforward;
323 double u = ::std::exp(-
v - 1);
326 double _t8 = ::std::exp(-u);
327 double _t7 = ::std::sqrt(u);
328 double _t6 = (q1[0] + (q1[1] + (q1[2] + (q1[3] + q1[4] *
v) *
v) *
v) *
v);
329 double denlan = _t8 * _t7 * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) *
v) / _t6;
330 _d_denlan += d_out / xi;
331 *d_xi += d_out * -(denlan / (xi * xi));
333 double _r_d5 = _d_denlan;
336 _r7 += _r_d5 / _t6 * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) *
v) * _t7 *
337 clad::custom_derivatives::exp_pushforward(-u, 1.).pushforward;
340 _r8 += _t8 * _r_d5 / _t6 * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) *
v) *
341 clad::custom_derivatives::sqrt_pushforward(u, 1.).pushforward;
343 _d_v += p1[4] * _t8 * _t7 * _r_d5 / _t6 *
v *
v *
v;
344 _d_v += (p1[3] + p1[4] *
v) * _t8 * _t7 * _r_d5 / _t6 *
v *
v;
345 _d_v += (p1[2] + (p1[3] + p1[4] *
v) *
v) * _t8 * _t7 * _r_d5 / _t6 *
v;
346 _d_v += (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) * _t8 * _t7 * _r_d5 / _t6;
347 double _r9 = _r_d5 * -(_t8 * _t7 * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) *
v) / (_t6 * _t6));
348 _d_v += q1[4] * _r9 *
v *
v *
v;
349 _d_v += (q1[3] + q1[4] *
v) * _r9 *
v *
v;
350 _d_v += (q1[2] + (q1[3] + q1[4] *
v) *
v) * _r9 *
v;
351 _d_v += (q1[1] + (q1[2] + (q1[3] + q1[4] *
v) *
v) *
v) * _r9;
356 _r6 += _r_d4 * clad::custom_derivatives::exp_pushforward(-
v - 1, 1.).pushforward;
360 double _t10 = (q2[0] + (q2[1] + (q2[2] + (q2[3] + q2[4] *
v) *
v) *
v) *
v);
361 double denlan = (p2[0] + (p2[1] + (p2[2] + (p2[3] + p2[4] *
v) *
v) *
v) *
v) / _t10;
362 _d_denlan += d_out / xi;
363 *d_xi += d_out * -(denlan / (xi * xi));
365 double _r_d6 = _d_denlan;
367 _d_v += p2[4] * _r_d6 / _t10 *
v *
v *
v;
368 _d_v += (p2[3] + p2[4] *
v) * _r_d6 / _t10 *
v *
v;
369 _d_v += (p2[2] + (p2[3] + p2[4] *
v) *
v) * _r_d6 / _t10 *
v;
370 _d_v += (p2[1] + (p2[2] + (p2[3] + p2[4] *
v) *
v) *
v) * _r_d6 / _t10;
371 double _r10 = _r_d6 * -((p2[0] + (p2[1] + (p2[2] + (p2[3] + p2[4] *
v) *
v) *
v) *
v) / (_t10 * _t10));
372 _d_v += q2[4] * _r10 *
v *
v *
v;
373 _d_v += (q2[3] + q2[4] *
v) * _r10 *
v *
v;
374 _d_v += (q2[2] + (q2[3] + q2[4] *
v) *
v) * _r10 *
v;
375 _d_v += (q2[1] + (q2[2] + (q2[3] + q2[4] *
v) *
v) *
v) * _r10;
378 double _t12 = (q3[0] + (q3[1] + (q3[2] + (q3[3] + q3[4] *
v) *
v) *
v) *
v);
379 double denlan = (p3[0] + (p3[1] + (p3[2] + (p3[3] + p3[4] *
v) *
v) *
v) *
v) / _t12;
380 _d_denlan += d_out / xi;
381 *d_xi += d_out * -(denlan / (xi * xi));
383 double _r_d7 = _d_denlan;
385 _d_v += p3[4] * _r_d7 / _t12 *
v *
v *
v;
386 _d_v += (p3[3] + p3[4] *
v) * _r_d7 / _t12 *
v *
v;
387 _d_v += (p3[2] + (p3[3] + p3[4] *
v) *
v) * _r_d7 / _t12 *
v;
388 _d_v += (p3[1] + (p3[2] + (p3[3] + p3[4] *
v) *
v) *
v) * _r_d7 / _t12;
389 double _r11 = _r_d7 * -((p3[0] + (p3[1] + (p3[2] + (p3[3] + p3[4] *
v) *
v) *
v) *
v) / (_t12 * _t12));
390 _d_v += q3[4] * _r11 *
v *
v *
v;
391 _d_v += (q3[3] + q3[4] *
v) * _r11 *
v *
v;
392 _d_v += (q3[2] + (q3[3] + q3[4] *
v) *
v) * _r11 *
v;
393 _d_v += (q3[1] + (q3[2] + (q3[3] + q3[4] *
v) *
v) *
v) * _r11;
398 double _t15 = (q4[0] + (q4[1] + (q4[2] + (q4[3] + q4[4] * u) * u) * u) * u);
399 double denlan = u * u * (p4[0] + (p4[1] + (p4[2] + (p4[3] + p4[4] * u) * u) * u) * u) / _t15;
400 _d_denlan += d_out / xi;
401 *d_xi += d_out * -(denlan / (xi * xi));
403 double _r_d9 = _d_denlan;
405 _d_u += _r_d9 / _t15 * (p4[0] + (p4[1] + (p4[2] + (p4[3] + p4[4] * u) * u) * u) * u) * u;
406 _d_u += u * _r_d9 / _t15 * (p4[0] + (p4[1] + (p4[2] + (p4[3] + p4[4] * u) * u) * u) * u);
407 _d_u += p4[4] * u * u * _r_d9 / _t15 * u * u * u;
408 _d_u += (p4[3] + p4[4] * u) * u * u * _r_d9 / _t15 * u * u;
409 _d_u += (p4[2] + (p4[3] + p4[4] * u) * u) * u * u * _r_d9 / _t15 * u;
410 _d_u += (p4[1] + (p4[2] + (p4[3] + p4[4] * u) * u) * u) * u * u * _r_d9 / _t15;
411 double _r13 = _r_d9 * -(u * u * (p4[0] + (p4[1] + (p4[2] + (p4[3] + p4[4] * u) * u) * u) * u) / (_t15 * _t15));
412 _d_u += q4[4] * _r13 * u * u * u;
413 _d_u += (q4[3] + q4[4] * u) * _r13 * u * u;
414 _d_u += (q4[2] + (q4[3] + q4[4] * u) * u) * _r13 * u;
415 _d_u += (q4[1] + (q4[2] + (q4[3] + q4[4] * u) * u) * u) * _r13;
418 double _r12 = _r_d8 * -(1 / (
v *
v));
424 double _t18 = (q5[0] + (q5[1] + (q5[2] + (q5[3] + q5[4] * u) * u) * u) * u);
425 double denlan = u * u * (p5[0] + (p5[1] + (p5[2] + (p5[3] + p5[4] * u) * u) * u) * u) / _t18;
426 _d_denlan += d_out / xi;
427 *d_xi += d_out * -(denlan / (xi * xi));
429 double _r_d11 = _d_denlan;
431 _d_u += _r_d11 / _t18 * (p5[0] + (p5[1] + (p5[2] + (p5[3] + p5[4] * u) * u) * u) * u) * u;
432 _d_u += u * _r_d11 / _t18 * (p5[0] + (p5[1] + (p5[2] + (p5[3] + p5[4] * u) * u) * u) * u);
433 _d_u += p5[4] * u * u * _r_d11 / _t18 * u * u * u;
434 _d_u += (p5[3] + p5[4] * u) * u * u * _r_d11 / _t18 * u * u;
435 _d_u += (p5[2] + (p5[3] + p5[4] * u) * u) * u * u * _r_d11 / _t18 * u;
436 _d_u += (p5[1] + (p5[2] + (p5[3] + p5[4] * u) * u) * u) * u * u * _r_d11 / _t18;
437 double _r15 = _r_d11 * -(u * u * (p5[0] + (p5[1] + (p5[2] + (p5[3] + p5[4] * u) * u) * u) * u) / (_t18 * _t18));
438 _d_u += q5[4] * _r15 * u * u * u;
439 _d_u += (q5[3] + q5[4] * u) * _r15 * u * u;
440 _d_u += (q5[2] + (q5[3] + q5[4] * u) * u) * _r15 * u;
441 _d_u += (q5[1] + (q5[2] + (q5[3] + q5[4] * u) * u) * u) * _r15;
442 double _r_d10 = _d_u;
444 double _r14 = _r_d10 * -(1 / (
v *
v));
446 }
else if (
v < 300) {
451 double _t21 = (q6[0] + (q6[1] + (q6[2] + (q6[3] + q6[4] * u) * u) * u) * u);
452 double denlan = u * u * (p6[0] + (p6[1] + (p6[2] + (p6[3] + p6[4] * u) * u) * u) * u) / _t21;
453 _d_denlan += d_out / xi;
454 *d_xi += d_out * -(denlan / (xi * xi));
456 double _r_d13 = _d_denlan;
458 _d_u += _r_d13 / _t21 * (p6[0] + (p6[1] + (p6[2] + (p6[3] + p6[4] * u) * u) * u) * u) * u;
459 _d_u += u * _r_d13 / _t21 * (p6[0] + (p6[1] + (p6[2] + (p6[3] + p6[4] * u) * u) * u) * u);
460 _d_u += p6[4] * u * u * _r_d13 / _t21 * u * u * u;
461 _d_u += (p6[3] + p6[4] * u) * u * u * _r_d13 / _t21 * u * u;
462 _d_u += (p6[2] + (p6[3] + p6[4] * u) * u) * u * u * _r_d13 / _t21 * u;
463 _d_u += (p6[1] + (p6[2] + (p6[3] + p6[4] * u) * u) * u) * u * u * _r_d13 / _t21;
464 double _r17 = _r_d13 * -(u * u * (p6[0] + (p6[1] + (p6[2] + (p6[3] + p6[4] * u) * u) * u) * u) / (_t21 * _t21));
465 _d_u += q6[4] * _r17 * u * u * u;
466 _d_u += (q6[3] + q6[4] * u) * _r17 * u * u;
467 _d_u += (q6[2] + (q6[3] + q6[4] * u) * u) * _r17 * u;
468 _d_u += (q6[1] + (q6[2] + (q6[3] + q6[4] * u) * u) * u) * _r17;
470 double _r_d12 = _d_u;
472 double _r16 = _r_d12 * -(1 / (
v *
v));
476 double _t25 = ::std::log(
v);
477 double _t24 = (
v + 1);
478 double _t23 = (
v -
v * _t25 / _t24);
482 double denlan = u * u * (1 + (a2[0] + a2[1] * u) * u);
483 _d_denlan += d_out / xi;
484 *d_xi += d_out * -(denlan / (xi * xi));
486 double _r_d15 = _d_denlan;
488 _d_u += _r_d15 * (1 + (a2[0] + a2[1] * u) * u) * u;
489 _d_u += u * _r_d15 * (1 + (a2[0] + a2[1] * u) * u);
490 _d_u += a2[1] * u * u * _r_d15 * u;
491 _d_u += (a2[0] + a2[1] * u) * u * u * _r_d15;
493 double _r_d14 = _d_u;
495 double _r18 = _r_d14 * -(1 / (_t23 * _t23));
497 _d_v += -_r18 / _t24 * _t25;
499 _r19 +=
v * -_r18 / _t24 * clad::custom_derivatives::log_pushforward(
v, 1.).pushforward;
501 double _r20 = -_r18 * -(
v * _t25 / (_t24 * _t24));
506 double _r0 = _d_v * -((
x - x0) / (xi * xi));
510inline void landau_cdf_pullback(
double x,
double xi,
double x0,
double d_out,
double *d_x,
double *d_xi,
double *d_x0)
513 static double p1[5] = {0.2514091491e+0,-0.6250580444e-1, 0.1458381230e-1,-0.2108817737e-2, 0.7411247290e-3};
514 static double q1[5] = {1.0 ,-0.5571175625e-2, 0.6225310236e-1,-0.3137378427e-2, 0.1931496439e-2};
516 static double p2[4] = {0.2868328584e+0, 0.3564363231e+0, 0.1523518695e+0, 0.2251304883e-1};
517 static double q2[4] = {1.0 , 0.6191136137e+0, 0.1720721448e+0, 0.2278594771e-1};
519 static double p3[4] = {0.2868329066e+0, 0.3003828436e+0, 0.9950951941e-1, 0.8733827185e-2};
520 static double q3[4] = {1.0 , 0.4237190502e+0, 0.1095631512e+0, 0.8693851567e-2};
522 static double p4[4] = {0.1000351630e+1, 0.4503592498e+1, 0.1085883880e+2, 0.7536052269e+1};
523 static double q4[4] = {1.0 , 0.5539969678e+1, 0.1933581111e+2, 0.2721321508e+2};
525 static double p5[4] = {0.1000006517e+1, 0.4909414111e+2, 0.8505544753e+2, 0.1532153455e+3};
526 static double q5[4] = {1.0 , 0.5009928881e+2, 0.1399819104e+3, 0.4200002909e+3};
528 static double p6[4] = {0.1000000983e+1, 0.1329868456e+3, 0.9162149244e+3,-0.9605054274e+3};
529 static double q6[4] = {1.0 , 0.1339887843e+3, 0.1055990413e+4, 0.5532224619e+3};
531 static double a1[4] = {0 ,-0.4583333333e+0, 0.6675347222e+0,-0.1641741416e+1};
532 static double a2[4] = {0 , 1.0 ,-0.4227843351e+0,-0.2043403138e+1};
535 const double v = (
x - x0) / xi;
539 const double _const0 = 0.3989422803;
540 double u = ::std::exp(
v + 1);
541 double _t3 = ::std::exp(-1. / u);
542 double _t2 = ::std::sqrt(u);
544 _r2 += _const0 * d_out * (1 + (a1[1] + (a1[2] + a1[3] * u) * u) * u) * _t2 *
545 clad::custom_derivatives::exp_pushforward(-1. / u, 1.).pushforward;
546 double _r3 = _r2 * -(-1. / (u * u));
549 _r4 += _const0 * _t3 * d_out * (1 + (a1[1] + (a1[2] + a1[3] * u) * u) * u) *
550 clad::custom_derivatives::sqrt_pushforward(u, 1.).pushforward;
552 _d_u += a1[3] * _const0 * _t3 * _t2 * d_out * u * u;
553 _d_u += (a1[2] + a1[3] * u) * _const0 * _t3 * _t2 * d_out * u;
554 _d_u += (a1[1] + (a1[2] + a1[3] * u) * u) * _const0 * _t3 * _t2 * d_out;
555 _d_v += _d_u * clad::custom_derivatives::exp_pushforward(
v + 1, 1.).pushforward;
558 double u = ::std::exp(-
v - 1);
559 double _t8 = ::std::exp(-u);
560 double _t7 = ::std::sqrt(u);
561 double _t6 = (q1[0] + (q1[1] + (q1[2] + (q1[3] + q1[4] *
v) *
v) *
v) *
v);
563 _r6 += d_out / _t6 * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) *
v) / _t7 *
564 clad::custom_derivatives::exp_pushforward(-u, 1.).pushforward;
566 double _r7 = d_out / _t6 * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) *
v) * -(_t8 / (_t7 * _t7));
568 _r8 += _r7 * clad::custom_derivatives::sqrt_pushforward(u, 1.).pushforward;
570 _d_v += p1[4] * (_t8 / _t7) * d_out / _t6 *
v *
v *
v;
571 _d_v += (p1[3] + p1[4] *
v) * (_t8 / _t7) * d_out / _t6 *
v *
v;
572 _d_v += (p1[2] + (p1[3] + p1[4] *
v) *
v) * (_t8 / _t7) * d_out / _t6 *
v;
573 _d_v += (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) * (_t8 / _t7) * d_out / _t6;
574 double _r9 = d_out * -((_t8 / _t7) * (p1[0] + (p1[1] + (p1[2] + (p1[3] + p1[4] *
v) *
v) *
v) *
v) / (_t6 * _t6));
575 _d_v += q1[4] * _r9 *
v *
v *
v;
576 _d_v += (q1[3] + q1[4] *
v) * _r9 *
v *
v;
577 _d_v += (q1[2] + (q1[3] + q1[4] *
v) *
v) * _r9 *
v;
578 _d_v += (q1[1] + (q1[2] + (q1[3] + q1[4] *
v) *
v) *
v) * _r9;
579 _d_v += -_d_u * clad::custom_derivatives::exp_pushforward(-
v - 1, 1.).pushforward;
581 double _t10 = (q2[0] + (q2[1] + (q2[2] + q2[3] *
v) *
v) *
v);
582 _d_v += p2[3] * d_out / _t10 *
v *
v;
583 _d_v += (p2[2] + p2[3] *
v) * d_out / _t10 *
v;
584 _d_v += (p2[1] + (p2[2] + p2[3] *
v) *
v) * d_out / _t10;
585 double _r10 = d_out * -((p2[0] + (p2[1] + (p2[2] + p2[3] *
v) *
v) *
v) / (_t10 * _t10));
586 _d_v += q2[3] * _r10 *
v *
v;
587 _d_v += (q2[2] + q2[3] *
v) * _r10 *
v;
588 _d_v += (q2[1] + (q2[2] + q2[3] *
v) *
v) * _r10;
590 double _t12 = (q3[0] + (q3[1] + (q3[2] + q3[3] *
v) *
v) *
v);
591 _d_v += p3[3] * d_out / _t12 *
v *
v;
592 _d_v += (p3[2] + p3[3] *
v) * d_out / _t12 *
v;
593 _d_v += (p3[1] + (p3[2] + p3[3] *
v) *
v) * d_out / _t12;
594 double _r11 = d_out * -((p3[0] + (p3[1] + (p3[2] + p3[3] *
v) *
v) *
v) / (_t12 * _t12));
595 _d_v += q3[3] * _r11 *
v *
v;
596 _d_v += (q3[2] + q3[3] *
v) * _r11 *
v;
597 _d_v += (q3[1] + (q3[2] + q3[3] *
v) *
v) * _r11;
601 double _t15 = (q4[0] + (q4[1] + (q4[2] + q4[3] * u) * u) * u);
602 _d_u += p4[3] * d_out / _t15 * u * u;
603 _d_u += (p4[2] + p4[3] * u) * d_out / _t15 * u;
604 _d_u += (p4[1] + (p4[2] + p4[3] * u) * u) * d_out / _t15;
605 double _r13 = d_out * -((p4[0] + (p4[1] + (p4[2] + p4[3] * u) * u) * u) / (_t15 * _t15));
606 _d_u += q4[3] * _r13 * u * u;
607 _d_u += (q4[2] + q4[3] * u) * _r13 * u;
608 _d_u += (q4[1] + (q4[2] + q4[3] * u) * u) * _r13;
609 double _r12 = _d_u * -(1. / (
v *
v));
614 double _t18 = (q5[0] + (q5[1] + (q5[2] + q5[3] * u) * u) * u);
615 _d_u += p5[3] * d_out / _t18 * u * u;
616 _d_u += (p5[2] + p5[3] * u) * d_out / _t18 * u;
617 _d_u += (p5[1] + (p5[2] + p5[3] * u) * u) * d_out / _t18;
618 double _r15 = d_out * -((p5[0] + (p5[1] + (p5[2] + p5[3] * u) * u) * u) / (_t18 * _t18));
619 _d_u += q5[3] * _r15 * u * u;
620 _d_u += (q5[2] + q5[3] * u) * _r15 * u;
621 _d_u += (q5[1] + (q5[2] + q5[3] * u) * u) * _r15;
622 double _r14 = _d_u * -(1. / (
v *
v));
624 }
else if (
v < 300) {
627 double _t21 = (q6[0] + (q6[1] + (q6[2] + q6[3] * u) * u) * u);
628 _d_u += p6[3] * d_out / _t21 * u * u;
629 _d_u += (p6[2] + p6[3] * u) * d_out / _t21 * u;
630 _d_u += (p6[1] + (p6[2] + p6[3] * u) * u) * d_out / _t21;
631 double _r17 = d_out * -((p6[0] + (p6[1] + (p6[2] + p6[3] * u) * u) * u) / (_t21 * _t21));
632 _d_u += q6[3] * _r17 * u * u;
633 _d_u += (q6[2] + q6[3] * u) * _r17 * u;
634 _d_u += (q6[1] + (q6[2] + q6[3] * u) * u) * _r17;
635 double _r16 = _d_u * -(1. / (
v *
v));
639 double _t25 = ::std::log(
v);
640 double _t24 = (
v + 1);
641 double _t23 = (
v -
v * _t25 / _t24);
642 double u = 1. / _t23;
644 _d_u += a2[3] * -d_out * u * u;
645 _d_u += (a2[2] + a2[3] * u) * -d_out * u;
646 _d_u += (a2[1] + (a2[2] + a2[3] * u) * u) * -d_out;
647 double _r18 = _d_u * -(1. / (_t23 * _t23));
649 _d_v += -_r18 / _t24 * _t25;
651 _r19 +=
v * -_r18 / _t24 * clad::custom_derivatives::log_pushforward(
v, 1.).pushforward;
653 double _r20 = -_r18 * -(
v * _t25 / (_t24 * _t24));
659 *d_xi += _d_v * -((
x - x0) / (xi * xi));
winID h TVirtualViewer3D TVirtualGLPainter p
Namespace for new Math classes and functions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Double_t CosH(Double_t)
Returns the hyperbolic cosine of x.
Double_t ACos(Double_t)
Returns the principal value of the arc cosine of x, expressed in radians.
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Double_t ASin(Double_t)
Returns the principal value of the arc sine of x, expressed in radians.
Double_t Log2(Double_t x)
Returns the binary (base-2) logarithm of x.
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
Double_t Erf(Double_t x)
Computation of the error function erf(x).
Double_t ATan(Double_t)
Returns the principal value of the arc tangent of x, expressed in radians.
Double_t ASinH(Double_t)
Returns the area hyperbolic sine of x.
Double_t TanH(Double_t)
Returns the hyperbolic tangent of x.
Double_t ACosH(Double_t)
Returns the nonnegative area hyperbolic cosine of x.
Double_t Log(Double_t x)
Returns the natural logarithm of x.
Double_t Erfc(Double_t x)
Computes the complementary error function erfc(x).
Double_t Sq(Double_t x)
Returns x*x.
Double_t Sqrt(Double_t x)
Returns the square root of x.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
constexpr Double_t Ln10()
Natural log of 10 (to convert log to ln)
Double_t Hypot(Double_t x, Double_t y)
Returns sqrt(x*x + y*y)
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
Double_t Tan(Double_t)
Returns the tangent of an angle of x radians.
Double_t ATanH(Double_t)
Returns the area hyperbolic tangent of x.
Double_t Log10(Double_t x)
Returns the common (base-10) logarithm of x.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
Double_t SinH(Double_t)
Returns the hyperbolic sine of `x.
void landau_pdf_pullback(double x, double xi, double x0, double d_out, double *d_x, double *d_xi, double *d_x0)
void landau_cdf_pullback(double x, double xi, double x0, double d_out, double *d_x, double *d_xi, double *d_x0)
ValueAndPushforward< T, T > CosH_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Abs_pushforward(T x, T d_x)
void Min_pullback(T a, T b, U p, clad::array_ref< T > d_a, clad::array_ref< T > d_b)
ValueAndPushforward< T, T > Sq_pushforward(T x, T d_x)
void Max_pullback(T a, T b, U p, clad::array_ref< T > d_a, clad::array_ref< T > d_b)
ValueAndPushforward< T, T > Erf_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Erfc_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Sin_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Max_pushforward(T x, T y, T d_x, T d_y)
ValueAndPushforward< T, T > Hypot_pushforward(T x, T y, T d_x, T d_y)
ValueAndPushforward< T, T > ASinH_pushforward(T x, T d_x)
ValueAndPushforward< T, T > ACosH_pushforward(T x, T d_x)
ValueAndPushforward< T, T > ASin_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Cos_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Sqrt_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Tan_pushforward(T x, T d_x)
void Hypot_pullback(T x, T y, U p, clad::array_ref< T > d_x, clad::array_ref< T > d_y)
ValueAndPushforward< T, T > Power_pushforward(T x, T y, T d_x, T d_y)
void Power_pullback(T x, T y, U p, clad::array_ref< T > d_x, clad::array_ref< T > d_y)
ValueAndPushforward< T, T > Min_pushforward(T x, T y, T d_x, T d_y)
ValueAndPushforward< T, T > Log_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Log10_pushforward(T x, T d_x)
ValueAndPushforward< T, T > TanH_pushforward(T x, T d_x)
ValueAndPushforward< T, T > ACos_pushforward(T x, T d_x)
ValueAndPushforward< T, T > SinH_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Exp_pushforward(T x, T d_x)
ValueAndPushforward< T, T > Log2_pushforward(T x, T d_x)
ValueAndPushforward< T, T > ATanH_pushforward(T x, T d_x)
ValueAndPushforward< T, T > ATan_pushforward(T x, T d_x)