in reply to Stirling Approx to N! for large Number?

What's pure? Perl core has Math::BigInt which can use GMP or Pari to speed up representation and operations.

Pure usually means "written in Perl" but linkage to libraries is not immoral or dishonest.

use Math::BigInt qw(lib GMP :constant);

Update: corrected :constant tag. (Later, corrected with 'lib' in response to ewijaya's reply). The :constant tag is not wanted if you are dealing with floats.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: Stirling Approx to N! for large Number?
by monkfan (Curate) on Mar 25, 2005 at 13:33 UTC
    Zaxo,
    What's the equivalent to that in Pari? I tried this at the beginning of my code. But wont do.
    use Math::BigInt lib => 'Pari';
    I can use this with the normal computation
    use Math::GMP qw(:constant);
    But when its applied with my "factorial_stirling" subroutine, it became in conflict with my 'use constant statement for PI, EXP and also LOG function.

    Regards,
    Edward