Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re (tilly) 7: (Golf) Multiply polynomials

by tilly (Archbishop)
on May 08, 2001 at 19:27 UTC ( #78864=note: print w/replies, xml ) Need Help??


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

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://78864]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2016-10-01 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (577 votes). Check out past polls.