Problems? Is your data what you think it is? | |
PerlMonks |
Re^6: Algorithm for cancelling common factors between two lists of multiplicandsby BrowserUk (Patriarch) |
on Aug 11, 2005 at 05:57 UTC ( [id://482852]=note: print w/replies, xml ) | Need Help?? |
The precision is setable, but I had left at the default. Increasing the precision to the point where it match or suppassed the accuracy of your Haskell code (a setting of 58), doubled the time it took to a gnat's under 50 ms:
BTW: Could you explain something for me? In this:
I understand how it cancels between the lists, but I am confused about when it would pattern match against the second definition? 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.
In Section
Seekers of Perl Wisdom
|
|