Re: Re: Help Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg54928] Re: [mg54900] Re: Help Mathematica
- From: DrBob <drbob at bigfoot.com>
- Date: Sun, 6 Mar 2005 00:56:31 -0500 (EST)
- References: <200503050634.BAA01076@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
Here are two ways to do it: Pattern[#,Blank[]]&/@{x1,x2,x3} {x1_,x2_,x3_} ToExpression[ToString[#]<>"_"&/@{x1,x2,x3}] {x1_,x2_,x3_} Bobby On Sat, 5 Mar 2005 01:34:44 -0500 (EST), Bill Rowe <readnewsciv at earthlink.net> wrote: > On 3/4/05 at 5:07 AM, robynobile at gmail.com (Awgn78) wrote: > >> How i can obtain a list {x1_,x2_,x3_} from a list {x1, x2, x3}... > > You can't. The '_' character is a special purpose character in Mathematica and cannot be used as part of a symbol name. > > Of course you could do something like ToString[#]<>"_"&/@{x1, x2, x3}. But I doubt having a list of strings is what you want. > > If you indicated what your overall goal is, I or someone else here might be able to suggest a solution to the problem. > -- > To reply via email subtract one hundred and four > > > > -- DrBob at bigfoot.com www.eclecticdreams.net
- References:
- Re: Help Mathematica
- From: Bill Rowe <readnewsciv@earthlink.net>
- Re: Help Mathematica