Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Obtaining terms in an expansion

by randyk (Parson)
on Jan 05, 2006 at 21:19 UTC ( #521350=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (a[0][0] + a[0][1]) (a[1][0] + a[1][1])
      (a[2][0] + a[2][1]) ... (a[N-1][0] + a[N-1][1])
    
  2. or download this
    $C[0] = 1;
    $C[$N-1] = 1;
    ...
        $C[0] *= $a->[$i]->[0];
        $C[$N-1] *=  $a->[$i]->[1];
    }
    
  3. or download this
    (a[0][0] + a[0][1]) * (a[1][0] + a[1][1]) =
     C[0] + C[1] + C[2] + C[3],
    ...
    C[1] = a[0][0] * a[1][1]
    C[2] = a[0][1] * a[1][0]
    C[3] = a[0][1] * a[1][1]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://521350]
Approved by Old_Gray_Bear
Front-paged by kwaping
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2021-05-08 12:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (96 votes). Check out past polls.

    Notices?