MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Rows

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29446] Re: [mg29421] Rows
  • From: BobHanlon at aol.com
  • Date: Wed, 20 Jun 2001 04:36:26 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

A = {a, b, c};
B = {d, e, f};

C = Thread[{A, B}]

{{a, d}, {b, e}, {c, f}}

C = Transpose[{A, B}]

{{a, d}, {b, e}, {c, f}}


Bob Hanlon
Chantilly, VA  USA
______________________

Dear member of MathGroup:
I would like to report a problem with Mathematica. 
My trouble is as follows:
Consider two rows such as A={a,b,c} and B={d,e,f}.  Under the above 
assumption, I would like to obtain a following row C={{{a,d},{b,e},{c,f}}.  
I programmed in this way;
    C={{A[[1]],B[[1]]}, {A[[2]], B[[2]]}, {A[[3]], B[[3]]}}.

I obtained a required conclusion, but my programming needs too many steps 
such as {A[[100]],B[[100]]}.  In fact, I suppose that the rows consist of 
more 500 elements.  So, I hope to know easier programming with Mathematica.

    P.S. My Mathematica  is 3.0 version for Macintosh.
    
    Sincerely,
    Fujio Takata
    JIkaiRF at aol.com


  • Prev by Date: Re: AMD vs. Intel Floating Point
  • Next by Date: Re: AMD vs. Intel Floating Point
  • Previous by thread: RE: Rows
  • Next by thread: Re: Rows