Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Obtaining terms in an expansion

by randyk (Parson)
on Jan 05, 2006 at 21:19 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-26 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found