Re: troubles with lists
- To: mathgroup at smc.vnet.net
- Subject: [mg35678] Re: [mg35653] troubles with lists
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Thu, 25 Jul 2002 04:46:24 -0400 (EDT)
- References: <200207240606.CAA28722@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
I guess you could improve your notation a little to make things clearer, but in any case (and of course it would be helpful to know how you have your equations and variables stored or how they are obtained presumably one after the other), you may try: In[1]:= {{equation1, equation2}, Sequence @@ {{x1, x10}, {x2, x20}}} Out[1]= {{equation1, equation2}, {x1, x10}, {x2, x20}} Tomas Garza Mexico City ----- Original Message ----- From: "Gutlederer Erwin" <e9426270 at stud4.tuwien.ac.at> To: mathgroup at smc.vnet.net Subject: [mg35678] [mg35653] troubles with lists > Hello, > > I need to create the following list: > > {{equation1, equation2,...equation_n},{x1,x1_0},{x2,x2_0},...{xn,xn_0}} > > > In[48]:= Append[{{equation1, equation2}}, List[{x1, x1_0}, {x2, x2_0}]] > Out[48]= {{equation1, equation2}, {{x1, 0}, {x2, 0}}} > > doesn't give the desired result which is > > Out[]= {{equation1, equation2}, {x1, x1_0}, {x2, x2_0}} > without the brackets. > > Has somebody an elegant solution for this problem? > Thanks for any help in advance. > !e. > >
- References:
- troubles with lists
- From: Gutlederer Erwin <e9426270@stud4.tuwien.ac.at>
- troubles with lists