AMReX-Astro / Microphysics

common astrophysical microphysics routines with interfaces for the different AMReX codes
https://amrex-astro.github.io/Microphysics
Other
34 stars 33 forks source link

include higher taylor terms for fast_atan #1611

Closed zhichen3 closed 1 month ago

zhichen3 commented 1 month ago

Pointed out by Eric: in screening, atan is used in cases like gamma - atan(gamma), so we should use a higher order term rather than simply letting atan(gamma) ~ gamma when gamma is small.