Re: bignum 0.22



gamo <gamo@xxxxxxxxxxxx> wrote:
On Thu, 5 Jul 2007, Mumia W. wrote:

You can set the "accuracy" of the bignum module. Read "perldoc bignum"

BTW, if you make fact() recursive and use the Memoize module, you can
get a speed improvement--a /substantial/ speed improvement :-)

Thanks all of you.
This trick really really improve speed.

But if there is no previous knowledge that all numbers will be
integers

Aren't Catalan numbers only defined on integers?

I can not fix the precision or accuracy.

Choosing to leave the defaults in place is still a choice, and you should
understand what the consequences of that choice are. It is not for the
accuracy and precision to be infinite. They are still limited through
some confusing fall-back method.


Xho

--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
.



Relevant Pages

  • Re: Word 2003 table reformats when pasted to Word 2007
    ... Thanks Pamilia you're recommendation did the trick. ... BTW: the someone who changed the settings in Word Options is me. ...
    (microsoft.public.word.tables)
  • Re: Disable Simple File Sharing in Home Edition
    ... :piece of code in XP Home is reintroducing any of these ... :instabilities, which BTW were all resultant from a change ... :I'm using this trick since I've found it without any problem. ...
    (microsoft.public.windowsxp.security_admin)
  • A ListComp that maintains its own state (Was: Re: turing machine in an LC)
    ... verbose than strictly necessary;-) ... BTW, I realized that it is indeed possible for a LC to maintain its own state ... The trick is to use itertools.repeat ... to return the same mutable object on each iteration. ...
    (comp.lang.python)
  • Re: installing .debs from hdd
    ... Maintainers Guide shows nothing applicable. ... That did the trick. ... BTW, where in the docs does it mention this ... If you think you're getting free lunch, ...
    (Debian-User)
  • Re: bignum 0.22
    ... On Thu, 5 Jul 2007, Mumia W. wrote: ... BTW, if you make factrecursive and use the Memoize module, you can get a ... integers I can not fix the precision or accuracy. ...
    (comp.lang.perl.modules)