in reply to What causes NaN when using bignum

Simplified:
$ perl -e 'use bigint;print log(10),"\n"' NaN $ perl --version This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi
Update: Using Ubuntu 10.04.2 LTS

Replies are listed 'Best First'.
Re^2: What causes NaN when using bignum
by BrowserUk (Patriarch) on May 25, 2011 at 17:00 UTC

    Which strongly suggests that the cause is one of the many possible binary modules (Math::BigInt::BitVect, Math::BigInt::Pari and Math::BigInt::GMP.) that can sit behind use bignum doesn't properly handle log.

    If you could dump your %INC, maybe we could track down which one(s).


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Math/BigInt.pm -> /ha/work/projects/perl_repo/Ubuntu/10.04/i686/ +share/perl/5.10/Math/BigInt.pm warnings/register.pm -> /usr/share/perl/5.10/warnings/register.pm Exporter/Heavy.pm -> /usr/share/perl/5.10/Exporter/Heavy.pm bigint.pm -> /ha/work/projects/perl_repo/Ubuntu/10.04/i686/ +share/perl/5.10/bigint.pm vars.pm -> /usr/share/perl/5.10/vars.pm strict.pm -> /usr/share/perl/5.10/strict.pm Exporter.pm -> /usr/share/perl/5.10/Exporter.pm constant.pm -> /ha/work/projects/perl_repo/Ubuntu/10.04/i686/ +share/perl/5.10/constant.pm Math/BigInt/Calc.pm -> /ha/work/projects/perl_repo/Ubuntu/10.04/i686/ +share/perl/5.10/Math/BigInt/Calc.pm warnings.pm -> /usr/share/perl/5.10/warnings.pm overload.pm -> /usr/share/perl/5.10/overload.pm integer.pm -> /usr/share/perl/5.10/integer.pm
      On the other hand, works well on perl 5.12.1 on openSUSE 11.3.
      Update: paths added. I checked everything in the perl_repo, it's latest CPAN version available.
Re^2: What causes NaN when using bignum
by raybies (Chaplain) on May 25, 2011 at 13:48 UTC
    log(10) works fine on my 5.8.5 rhel linux 4 box... (produces... "2.303585092994045684017991454684364207601") I also get 8.5 from the original question.