in reply to Re: Re: Re: Re: (Golf) Multiply polynomials
in thread (Golf) Multiply polynomials
And note that I handle 0 or more polynomials correctly. (The empty product in math is "1".)sub p{ my@m=1;for my$p(@_){my@a;for my$i(0..@m){my$j;$a[$i+$j++]+=$_*$m[$i]fo +r@$p}@m=@a}\@m }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re (tilly) 5: (Golf) Multiply polynomials
by Masem (Monsignor) on May 08, 2001 at 18:52 UTC | |
by tilly (Archbishop) on May 08, 2001 at 19:27 UTC |