From cc00800b0e55ab5a5d892b03e735302eb0c06d47 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Sun, 2 Jun 2019 13:31:18 -0400 Subject: update get_probability() to take sin(theta) as an argument Since we already calculate sin(theta) in get_expected_charge() there's no reason to calculate it again in get_probability(). This *may* already be optimized out by the compiler. --- src/scattering.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scattering.h') diff --git a/src/scattering.h b/src/scattering.h index 265f653..43e59f7 100644 --- a/src/scattering.h +++ b/src/scattering.h @@ -23,7 +23,7 @@ #define MAX_THETA0 1.0 void init_interpolation(void); -double get_probability(double beta, double cos_theta, double theta0); +double get_probability(double beta, double cos_theta, double sin_theta, double theta0); double get_probability2(double beta); double get_weighted_quantum_efficiency(void); void free_interpolation(void); -- cgit