I've poked through my copies of calc.pm and bigint.pm. The offending routine is _log_int (I'm sure you knew that) which requires 2 arguments (the number and the base to which the log is to be taken; I'm sure you knew that, too). It's called from blog in bigint.pm, without the second argument.
I'd agree that this is a bug.
I also noticed that
#!perl use strict; use warnings; use bignum; my $n = -1; print 10.00 **$n . "\n";
returns NaN (on Windows; ) for negative values of $n. However, Math::BigFloat works.
emc
At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.
—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.In reply to Re: bug in bigint?
by swampyankee
in thread bug in bigint?
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |