develooper Front page | perl.perl5.porters | Postings from December 2003

[PATCH] BigInt v1.68 released

Thread Next
From:
Tels
Date:
December 30, 2003 06:32
Subject:
[PATCH] BigInt v1.68 released
Message ID:
200312301533.08784@bloodgate.com
-----BEGIN PGP SIGNED MESSAGE-----

Moin,

I am happy to finally release v1.68 of BigInt. Below is what has changed since 
the last pre-release snapshot. For a full history view the file NEW from the 
distribution:

* Calc.pm: _root() was wrong for numbers like 9 (0b1001) because they start 
  with the pattern /^0b1(0+)/ (missing '$' in regexp). This means that trying
  to do "$x->broot(9);" (9 == 0b1001) resulted actually in the 4th (4 ==
  0b100) root to be taken. Whoops.
* after fixing the _root() bug, the operation was dead slow for large numbers,
  like taking the 9th root out of 2 ** 240 took ages. The algorithmn scales
  now much better.
* add special tests for large roots in bigroot.t
* streamlined overload for boolean context (20% faster "... if $x;")

A patch to sync bleadperl to the CPAN release is attached.

A Happy New Year,

Tels

- -- 
 Signed on Tue Dec 30 15:24:17 2003 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

perl -MMath::String=from_number -le 'print from_number(Math::BigInt->new(
"18646399493525281530194668228877222090413595623092063296651")*2*27*7*1289,
[ "a".."z", "A".."Z"," ","!"]);'


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBP/GMoXcLPEOTuEwVAQHykgf+JrDR3IghPAUsoGvYw7wttWHUyYNFQJV2
9DpPYyhcRl5TRB2f2j9DFOWny/j8TDXB/hWu1Kk99MynzHAymiqzKxsiu9QJnsOH
6K3TkSRTLsjcbK3ZhCXqTxlu9nLyjwrFTZHX8JmqfES31P/P1tTBtMJd9NuDTqPx
1UtSUVs/FIoIkEUVe76IkCj/4wIRVPQqJy36ejLqulqrMz5btP4MPIs3kcTqN/e5
wlzCHqUYK9vtAeRyj4SrOYGetBcGOCPi92OaAHOtN9O3oz65OCRo7fgUoYQC0biD
31W792aOBJHPRYSAxYsUL+h3fL9Zt6DYrdpP594QW3gULMlQOPxsaQ==
=otoo
-----END PGP SIGNATURE-----

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About