Skip to content

Commit

Permalink
correct expression for integral approximation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbrahms committed Oct 21, 2024
1 parent a4c7e79 commit 4dd080c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Ionisation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,7 @@ function ionrate_fun_PPT(ionpot::Float64, λ0, Z, l;
end
n0 = ceil(v)
if sum_integral
s = (2.0^(2mabs -3)*sqrt(π)*factorial(mabs)^2/(factorial(2mabs)*(mabs+1/2)*asinh(γ))
*sqrt/(sqrt(1+γ2)*asinh(γ) - γ)))
s = sqrt(π)*factorial(mabs)*β^mabs/(2*+β)^(mabs+1))*sqrt/α)
else
s, _, _ = Maths.converge_series(0, n0=n0, rtol=sum_tol, maxiter=Inf) do x, n
diff = n-v
Expand Down

0 comments on commit 4dd080c

Please sign in to comment.