Help for this page

Select Code to Download


  1. or download this
    'log'   =>      sub { $_[0]->copy()->blog($_[1]); },
    
  2. or download this
    sub blog
      {
    ...
    
      return $x->bnan();
      }
    
  3. or download this
      my ($rc,$exact) = $CALC->_log_int($x->{value},$base->{value});
    
  4. or download this
    sub _log_int
      {
    ...
      return if (scalar @$x == 1 && $x->[0] == 0);
      # BASE 0 or 1 => NaN
      return if (scalar @$base == 1 && $base->[0] < 2);