Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-lieser committed Nov 13, 2024
1 parent a9e3945 commit d96e219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand_distr/src/hypergeometric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ fn fraction_of_products_of_factorials(numerator: (u64, u64), denominator: (u64,
result
}

const LOGSQRT2PI: f64 = 0.91893853320467274178; // log(sqrt(2)*pi)
const LOGSQRT2PI: f64 = 0.91893853320467274178; // log(sqrt(2*pi))

fn ln_of_factorial(v: f64) -> f64 {
// the paper calls for ln(v!), but also wants to pass in fractions,
Expand Down

0 comments on commit d96e219

Please sign in to comment.