}
if ($x_is_zero)
{
- #return $x->bone() if $y_is_zero;
return $x if $y->{sign} eq '+'; # 0**y => 0 (if not y <= 0)
# 0 ** -y => 1 / (0 ** y) => 1 / 0! (1 / 0 => +inf)
return $x->binf();
}
# This series is only valid if -1 < x < 1, so for other x we need to
- # to calculate PI/ - atan(1/x):
+ # to calculate PI/2 - atan(1/x):
my $one = $MBI->_new(1);
my $pi = undef;
if ($x->{_es} eq '+' && ($MBI->_acmp($x->{_m},$one) >= 0))
sub bmul
{
- # multiply the first number by the second numbers
+ # multiply the first number by the second number
# (BINT or num_str, BINT or num_str) return BINT
# set up parameters
return $upgrade->bmuladd($x,$upgrade->new($y),$upgrade->new($z),@r)
if defined $upgrade && (!$y->isa($self) || !$z->isa($self) || !$x->isa($self));
- # TODO: what it $y and $z have A or P set?
+ # TODO: what if $y and $z have A or P set?
$r[3] = $z; # no push here
$x->{sign} = $x->{sign} eq $y->{sign} ? '+' : '-'; # +1 * +1 or -1 * -1 => +