Re: troubles with lists

• To: mathgroup at smc.vnet.net
• Subject: [mg35694] Re: troubles with lists
• From: "Allan Hayes" <hay at haystack.demon.co.uk>
• Date: Fri, 26 Jul 2002 04:16:40 -0400 (EDT)
• References: <ahlhbc\$s6c\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Erwin,

Flatten[{{{equation1,equation2}},List[{x1,x1_0},{x2,x2_0}]},1]

{{equation1,equation2},{x1,0},{x2,0}}

--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Gutlederer Erwin" <e9426270 at stud4.tuwien.ac.at> wrote in message
news:ahlhbc\$s6c\$1 at smc.vnet.net...
> 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.
>
>

```

• Prev by Date: Re: Question about Replace
• Next by Date: Re: Key fonts fix to Mathematica 4.2 upgrade instructions (FCP instructions)
• Previous by thread: Re: troubles with lists
• Next by thread: MatrixForm Oddity