Skip Menu |
 

This queue is for tickets about the bignum CPAN distribution.

Report information
The Basics
Id: 37625
Status: resolved
Priority: 0/
Queue: bignum

People
Owner: Nobody in particular
Requestors: bitcard [...] criis.eu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.17
Fixed in: (no value)



Subject: Inconsistent runtimes
Download (untitled) / with headers
text/plain 439b
Hello, The runtimes for log on large integers are strange. I'm running perl 5.8.8 on Ubuntu 8.04 (2.6.24-16-generic). perl -Mbignum=v returns bignum v0.17 Math::BigInt v1.77 lib => Math::BigInt::Calc v0.47 Math::BigFloat v1.51 To reproduce: $ time perl -Mbignum -le 'log 2**2001' real 0m0.101s user 0m0.088s sys 0m0.012s $ time perl -Mbignum -le 'log 2**2000' real 0m6.248s user 0m6.232s sys 0m0.016s Regards Christian Riis
Download (untitled) / with headers
text/plain 254b
The 'log' function (with 'bignum') is flawed. Occasionally it gives a wrong result. Please don't use it. This ticket is probably related to other tickets: https://rt.cpan.org/Ticket/Display.html?id=43924 https://rt.cpan.org/Ticket/Display.html?id=43692
Both the speed issue and the occasional wrong result from log() has been fixed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.