Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Re (tilly) 5: (Golf) Multiply polynomials

by Masem (Monsignor)
on May 08, 2001 at 18:52 UTC ( #78843=note: print w/replies, xml ) Need Help??

in reply to Re (tilly) 5: (Golf) Multiply polynomials
in thread (Golf) Multiply polynomials

This must be under 5.6 or the like; "for my$p" and "for my$i" lead to interpreter problems under 5.005_02 (Win32). Bug or feature change?
Dr. Michael K. Neylon - || "You've left the lens cap of your mind on again, Pinky" - The Brain
  • Comment on Re: Re (tilly) 5: (Golf) Multiply polynomials

Replies are listed 'Best First'.
Re (tilly) 7: (Golf) Multiply polynomials
by tilly (Archbishop) on May 08, 2001 at 19:27 UTC
    Um, bug. I was too glib.

    But that makes getting a strict version with a count of 84 a point of honour, right? :-)

    sub p{ my@m=1;for my $p(@_){my@a;map{my$j=my$i=$_;$a[$j++]+=$_*$m[$i]for@$p}0 +..@m;@m=@a}\@m }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://78843]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-02-24 02:43 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (351 votes). Check out past polls.