in reply to Re^2: Fastest way to calculate hypergeometric distribution probabilities (i.e. BIG factorials)?
in thread Fastest way to calculate hypergeometric distribution probabilities (i.e. BIG factorials)?
Good idea, but no cigar.
The GSL doesn't handle large numbers.$ perl -MMath::Gsl::Sf=:Gamma -e'print gamma(300)' gsl: gamma.c:1111: ERROR: overflow Default GSL error handler invoked. Aborted (core dumped) $
There's also a math error to correct: gamma($n) == factorial($n - 1)
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fastest way to calculate hypergeometric distribution probabilities (i.e. BIG factorials)?
by salva (Canon) on Jun 14, 2005 at 08:15 UTC | |
|
Re^4: Fastest way to calculate hypergeometric distribution probabilities (i.e. BIG factorials)?
by mrborisguy (Hermit) on Jun 14, 2005 at 13:05 UTC |