There's more than one way to do things PerlMonks

### Re^3: Algorithm for cancelling common factors between two lists of multiplicands

by tlm (Prior)
 on Aug 10, 2005 at 14:05 UTC ( #482609=note: print w/replies, xml ) Need Help??

Of course our results will match in those rare cases in which the FET sum happens to contain only one term.

Silence betokens consent

Not necessarily ;-) .

the lowliest monk

• Comment on Re^3: Algorithm for cancelling common factors between two lists of multiplicands

Replies are listed 'Best First'.
Re^4: Algorithm for cancelling common factors between two lists of multiplicands
by BrowserUk (Patriarch) on Aug 10, 2005 at 14:34 UTC
Of course our results will match in those rare cases in which the FET sum happens to contain only one term.

Care to try and explain that?

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Care to try and explain that?

Maybe Fisher's Exact Test will elucidate the matter.

the lowliest monk

Much nicer. Falling over to using the approximation only when needed makes a lot of sense.

BTW: You have a couple of artifacts left from the earlier caching scheme

```  my \$max_arr;
my @ln_fact;
...
BEGIN {
\$max_arr   = 10000;
\$#ln_fact  = \$max_arr - 1;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://482609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2023-03-20 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
Which type of climate do you prefer to live in?

Results (59 votes). Check out past polls.

Notices?