Skip to content

Commit

Permalink
add commented sympy code
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrommyd committed Mar 22, 2024
1 parent 2e40ef8 commit e30818c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zfit_physics/models/pdf_erfexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ def erfexp_pdf_func(x, alpha, beta, gamma, n):

# Note: There is no analytic integral for the ErfExp PDF
# We tried with sympy, Mathematica, Wolfram Alpha and https://www.integral-calculator.com/
# import sympy as sp
#
# # Define symbols
# x, alpha, beta, gamma, n = sp.symbols('x alpha beta gamma n', real=True)
#
# # Define the function
# func = sp.erfc((x - alpha) * beta) * sp.exp(-gamma * (x**n - alpha**n))
# sp.integrate(func, x)
class ErfExp(zfit.pdf.BasePDF):
_N_OBS = 1

Expand Down

0 comments on commit e30818c

Please sign in to comment.