2Python wrapper for C++ bindings generated using Pybind11.
3Each function corresponds to a mathematical or numerical utility available in the C++ backend.
6from pyhyperiso.phyperiso.pyhyperiso
import math
as mb
7from pyhyperiso.core.Math.Scalar
import Scalar
11def Li2(x: float) -> float:
12 """Compute the dilogarithm function.
23def Li3(x: float) -> float:
24 """Compute the trilogarithm function.
35def CLi2(x: Scalar) -> complex:
36 """Compute the complex dilogarithm function.
42 Complex dilogarithm value.
44 if isinstance(x, complex):
45 x = Scalar.from_complex(x)
47 return Scalar.from_cpp(mb.CLi2(x._cpp_obj))
50def Cl2(x: float) -> float:
51 """Compute the Clausen function Cl2.
62def H2(x: float, y: float) -> float:
63 """Compute the H2(x, y) special function.
67 y: Second input value.
75def B(m1: float, m2: float, Q: float) -> float:
76 """Compute the B-function of two masses and a scale Q.
81 Q: Renormalization scale.
84 Value of B(m1, m2, Q).
86 return mb.B(m1, m2, Q)
89def kron(x: int, y: int) -> int:
90 """Kronecker delta function.
102def integrate(f, l: float, u: float, prec: float = 1e-6) -> float:
103 """Integrate a real-valued function f from l to u.
106 f: Callable real function.
107 l: Lower integration bound.
108 u: Upper integration bound.
109 prec: Desired precision.
114 return mb.integrate(f, l, u, prec)
117def c_integrate(f, l: float, u: float, prec: float = 1e-6) -> Scalar:
118 """Integrate a complex-valued function f over [l, u].
121 f: Callable complex function.
127 Complex integral value.
129 return Scalar.from_cpp(mb.c_integrate(f, l, u, prec))
133 """Compute the digamma function ψ(n) for integer input.
136 n: Integer input (n > 0).
152def A0t(x: float) -> float:
153 """Wilson coefficient A0t.
164def F0t(x: float) -> float:
165 """Wilson coefficient F0t."""
169def B0t(x: float) -> float:
170 """Wilson coefficient B0t."""
174def C0t(x: float) -> float:
175 """Wilson coefficient C0t."""
179def D0t(x: float) -> float:
180 """Wilson coefficient D0t."""
184def E0t(x: float) -> float:
185 """Wilson coefficient E0t."""
189def T(x: float) -> float:
190 """Wilson coefficient T."""
194def A1t(x: float, l: float) -> float:
195 """Wilson coefficient A1t.
199 l: Logarithmic scale.
207def B1t(x: float, l: float) -> float:
208 """Wilson coefficient B1t.
212 l: Logarithmic scale.
220def C1t(x: float, l: float) -> float:
221 """Wilson coefficient C1t.
225 l: Logarithmic scale.
233def D1t(x: float, l: float) -> float:
234 """Wilson coefficient D1t.
238 l: Logarithmic scale.
246def E1t(x: float, l: float) -> float:
247 """Wilson coefficient E1t.
251 l: Logarithmic scale.
259def F1t(x: float, l: float) -> float:
260 """Wilson coefficient F1t.
264 l: Logarithmic scale.
272def G1t(x: float, l: float) -> float:
273 """Wilson coefficient G1t.
277 l: Logarithmic scale.
286 """Wilson coefficient C7t at 2m_t scale.
298 """Wilson coefficient C7c at M_W scale.
310 """Wilson coefficient C8t at 2m_t scale.
322 """Wilson coefficient C8c at M_W scale.
334 """Wilson coefficient F7_1.
346 """Wilson coefficient F7_2.
358 """Wilson coefficient F8_1.
370 """Wilson coefficient F8_2.
381def G3H(x: float, lu: float) -> float:
382 """Wilson coefficient G3H.
386 lu: Logarithmic scale.
394def G4H(x: float, lu: float) -> float:
395 """Wilson coefficient G4H.
399 lu: Logarithmic scale.
407def G7H(x: float, lu: float, ld: float) -> float:
408 """Wilson coefficient G7H.
416 Value of G7H(x, lu, ld).
418 return mb.G7H(x, lu, ld)
421def G8H(x: float, lu: float, ld: float) -> float:
422 """Wilson coefficient G8H.
430 Value of G8H(x, lu, ld).
432 return mb.G8H(x, lu, ld)
435def EH(x: float, lu: float) -> float:
436 """Wilson coefficient EH.
440 lu: Logarithmic scale.
448def D9H0(x: float, lu: float) -> float:
449 """Wilson coefficient D9H0.
453 lu: Logarithmic scale.
456 Value of D9H0(x, lu).
458 return mb.D9H0(x, lu)
461def D9H1(x: float, lu: float, L: float) -> float:
462 """Wilson coefficient D9H1.
466 lu: Logarithmic scale.
467 L: Additional parameter.
470 Value of D9H1(x, lu, L).
472 return mb.D9H1(x, lu, L)
476 """Wilson coefficient Delta3H.
480 lu: Logarithmic scale.
483 Value of Delta3H(x, lu).
485 return mb.Delta3H(x, lu)
489 """Wilson coefficient Delta4H.
493 lu: Logarithmic scale.
496 Value of Delta4H(x, lu).
498 return mb.Delta4H(x, lu)
501def Delta7H(x: float, lu: float, ld: float) -> float:
502 """Wilson coefficient Delta7H.
510 Value of Delta7H(x, lu, ld).
512 return mb.Delta7H(x, lu, ld)
515def Delta8H(x: float, lu: float, ld: float) -> float:
516 """Wilson coefficient Delta8H.
524 Value of Delta8H(x, lu, ld).
526 return mb.Delta8H(x, lu, ld)
529def C9llH0(x: float, y: float, lu: float) -> float:
530 """Wilson coefficient C9llH0.
533 x: First real parameter.
534 y: Second real parameter.
535 lu: Logarithmic scale.
538 Value of C9llH0(x, y, lu).
540 return mb.C9llH0(x, y, lu)
543def C9llH1(x: float, y: float, lu: float, L: float) -> float:
544 """Wilson coefficient C9llH1.
547 x: First real parameter.
548 y: Second real parameter.
549 lu: Logarithmic scale.
553 Value of C9llH1(x, y, lu, L).
555 return mb.C9llH1(x, y, lu, L)
559 """Wilson coefficient C10Wt at 2m_t scale.
565 Value of C10Wt2mt(x).
567 return mb.C10Wt2mt(x)
571 """Wilson coefficient C10Wc at M_W scale.
577 Value of C10Wc2MW(x).
579 return mb.C10Wc2MW(x)
583 """Wilson coefficient C10Zt at 2m_t scale.
589 Value of C10Zt2mt(x).
591 return mb.C10Zt2mt(x)
595 """Wilson coefficient C10Z from triangle diagrams.
601 Value of C10Z2tri(x).
603 return mb.C10Z2tri(x)
607 """Wilson coefficient F0SP.
610 xt: A real parameter.
float C9llH1(float x, float y, float lu, float L)
float A1t(float x, float l)
float C9llH0(float x, float y, float lu)
float Delta3H(float x, float lu)
float D9H1(float x, float lu, float L)
float Delta4H(float x, float lu)
float B1t(float x, float l)
float G1t(float x, float l)
float H2(float x, float y)
float G4H(float x, float lu)
float E1t(float x, float l)
float C1t(float x, float l)
float D1t(float x, float l)
Scalar c_integrate(f, float l, float u, float prec=1e-6)
float G3H(float x, float lu)
float Delta8H(float x, float lu, float ld)
float Delta7H(float x, float lu, float ld)
float G8H(float x, float lu, float ld)
float D9H0(float x, float lu)
float EH(float x, float lu)
float G7H(float x, float lu, float ld)
float F1t(float x, float l)
float integrate(f, float l, float u, float prec=1e-6)