Skip to content

Commit

Permalink
a little more factoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Oct 29, 2023
1 parent 0dff547 commit 0f7b90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neutrinos/sneut5.H
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@ void nu_photo(const sneutf_t& sf,
const Real cos4 = 2.0_rt * cos2 * cos2 - 1.0_rt;

// sin/cos (5 fac1 tau)
const Real sin5 = 5.0_rt * sin1 - sin1 * sin1 * sin1 * (20.0_rt + 16.0_rt * sin1 * sin1);
const Real cos5 = cos1 * cos1 * cos1 * (16.0_rt * cos1 * cos1 - 20.0_rt) + 5.0_rt * cos1;
const Real sin5 = sin1 * (5.0_rt - sin1 * sin1 * (20.0_rt + 16.0_rt * sin1 * sin1);
const Real cos5 = cos1 * (cos1 * cos1 * (16.0_rt * cos1 * cos1 - 20.0_rt) + 5.0_rt);

const auto [xast, last] = amrex::Math::sincos(nu_constants::fac2 * tau);

Expand Down

0 comments on commit 0f7b90f

Please sign in to comment.