Skip to content

Commit

Permalink
fix make_inverse_es_polynomial to ensure proper type handling for cos…
Browse files Browse the repository at this point in the history
…_theta
  • Loading branch information
Christian Haack committed Jan 24, 2025
1 parent ce8c8d3 commit 9147994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scattering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ end
Make a 3rd order polynomial that approximates the inverse of the ES scattering function.
"""
function make_inverse_es_polynomial(b::T) where {T<:Real}
cos_theta = -1:0.01:1
cos_theta = T.(-1:0.01:1)
es_poly = fit(Polynomial, es_scattering_cumulative.(cos_theta, b), cos_theta, 3)
return ImmutablePolynomial(Tuple(T.(collect(es_poly))))
end
Expand Down

0 comments on commit 9147994

Please sign in to comment.