"be consistent" | |
PerlMonks |
Stirling Approx to N! for large Number?by monkfan (Curate) |
on Mar 25, 2005 at 06:01 UTC ( [id://442289]=perlquestion: print w/replies, xml ) | Need Help?? |
monkfan has asked for the wisdom of the Perl Monks concerning the following question:
Hi, Following tilly's posting here. I attempted to construct the code. Stirling method indeed gives a faster result: With a reasonable approximation: But when it comes to large N, e.g $h = 500. It began to fail. I wonder if Tilly's suggestion is ever be possible, i.e resorting to pure Perl arithmetic (no external module) yet able to handle large number in a fastway?
Regards, Edward
Back to
Seekers of Perl Wisdom
|
|