Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Obtaining terms in an expansion

by jdporter (Canon)
on Jan 06, 2006 at 02:08 UTC ( #521402=note: print w/replies, xml ) Need Help??


in reply to Re^2: Obtaining terms in an expansion
in thread Obtaining terms in an expansion

my $prod = 1; # multiplicative identity, of course for ( @a ) { my($x,$y) = @$_; $prod *= $x + $y; }

That does what you describe, but it's not 2^N. Not sure where the discrepancy lies...

We're building the house of the future together.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2021-05-11 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (117 votes). Check out past polls.

    Notices?