in reply to Re: Frequency analysis of the digits of the result of a multiplication
in thread Frequency analysis of the digits of the result of a multiplication

Thanks for that.

I found that after getting @result, I had to add:
while (scalar @result < $maxdigits) { push @result, 0; }
to cope with when the result is less than $maxdigits in length. (M-x mpuz, which is behind why I wrote this code in the first place, throws away results less than 5 digits in length anyway.)
  • Comment on Re: Re: Frequency analysis of the digits of the result of a multiplication
  • Download Code